Skip to content

Commit

Permalink
NB-6 alter foreign key in migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-pal1 committed May 10, 2024
1 parent 3b4d103 commit 5e7bcf7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion netbox_paas/migrations/0002_rename_application.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated by Django 4.2.8 on 2024-05-10 05:43

from django.db import migrations
from django.db import migrations, models
import django.db.models.deletion


def named_tuple_fetch_all(cursor):
Expand Down Expand Up @@ -86,6 +87,12 @@ class Migration(migrations.Migration):
]

operations = [
migrations.AlterField(
model_name='netboxdbbackup',
name='netbox_env',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='db_backups',
to='netbox_paas.netboxconfiguration'),
),
migrations.RunPython(rename_indexes, migrations.RunPython.noop),
migrations.RunPython(rename_foreignkeys, migrations.RunPython.noop),
migrations.RunPython(migrate_models),
Expand Down

0 comments on commit 5e7bcf7

Please sign in to comment.