mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 01:15:57 +10:00
- Add missing crawls_crawlschedule table definition to SCHEMA_0_8 in test file - Record all replaced dev branch migrations (0023-0074) for squashed migration - Update 0024_snapshot_crawl migration to depend on squashed machine migration - Remove 'extractor' field references from crawls admin - All 45 migration tests now pass (0.4.x, 0.7.x, 0.8.x, fresh install)
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
# Generated by Django 5.0.6 on 2024-12-25
|
|
# Adds crawl FK and iface FK after crawls and machine apps are created
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0023_new_schema'),
|
|
('crawls', '0001_initial'),
|
|
('machine', '0001_squashed'),
|
|
]
|
|
|
|
operations = [
|
|
# Add crawl FK to Snapshot
|
|
migrations.AddField(
|
|
model_name='snapshot',
|
|
name='crawl',
|
|
field=models.ForeignKey(
|
|
default=None, null=True, blank=True,
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name='snapshot_set',
|
|
to='crawls.crawl',
|
|
db_index=True,
|
|
),
|
|
),
|
|
|
|
# Add network interface FK to ArchiveResult
|
|
migrations.AddField(
|
|
model_name='archiveresult',
|
|
name='iface',
|
|
field=models.ForeignKey(
|
|
null=True, blank=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to='machine.networkinterface',
|
|
),
|
|
),
|
|
]
|