Files
ArchiveBox/archivebox/core/migrations/0024_snapshot_crawl.py
Claude ea6fe94c93 Add crawls_crawlschedule table to 0.8.x test schema and fix migrations
- 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)
2025-12-27 04:32:58 +00:00

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',
),
),
]