diff options
author | Konstantin L. Metlov <metlov@fti.dn.ua> | 2022-12-21 21:16:18 +0300 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-20 02:36:56 +0200 |
commit | dcf7343332ae929d59bc8bc4331109e54ab9ec9a (patch) | |
tree | 3165d17df32d57579f372bccd351f64f554b42f7 /src/lib/Bcfg2/Reporting/migrations/0001_initial.py | |
parent | 57f980db6c2e19c7ac2f031e658cebe253c6d048 (diff) | |
download | bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.tar.gz bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.tar.bz2 bcfg2-dcf7343332ae929d59bc8bc4331109e54ab9ec9a.zip |
added on_delete=models.CASCADE to all ForeignKey invocations
Signed-off-by: Konstantin L. Metlov <metlov@fti.dn.ua>
Diffstat (limited to 'src/lib/Bcfg2/Reporting/migrations/0001_initial.py')
-rw-r--r-- | src/lib/Bcfg2/Reporting/migrations/0001_initial.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/Bcfg2/Reporting/migrations/0001_initial.py b/src/lib/Bcfg2/Reporting/migrations/0001_initial.py index 22d0e9862..8956dc0c6 100644 --- a/src/lib/Bcfg2/Reporting/migrations/0001_initial.py +++ b/src/lib/Bcfg2/Reporting/migrations/0001_initial.py @@ -118,7 +118,7 @@ class Migration(migrations.Migration): ('extra_count', models.IntegerField(default=0)), ('actions', models.ManyToManyField(to='Reporting.ActionEntry')), ('bundles', models.ManyToManyField(to='Reporting.Bundle')), - ('client', models.ForeignKey(related_name='interactions', to='Reporting.Client')), + ('client', models.ForeignKey(on_delete=models.CASCADE, related_name='interactions', to='Reporting.Client')), ('failures', models.ManyToManyField(to='Reporting.FailureEntry')), ('groups', models.ManyToManyField(to='Reporting.Group')), ], @@ -199,7 +199,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('metric', models.CharField(max_length=128)), ('value', models.DecimalField(max_digits=32, decimal_places=16)), - ('interaction', models.ForeignKey(related_name='performance_items', to='Reporting.Interaction')), + ('interaction', models.ForeignKey(on_delete=models.CASCADE, related_name='performance_items', to='Reporting.Interaction')), ], options={ }, @@ -231,13 +231,13 @@ class Migration(migrations.Migration): migrations.AddField( model_name='pathentry', name='current_perms', - field=models.ForeignKey(related_name='+', to='Reporting.FilePerms'), + field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='Reporting.FilePerms'), preserve_default=True, ), migrations.AddField( model_name='pathentry', name='target_perms', - field=models.ForeignKey(related_name='+', to='Reporting.FilePerms'), + field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='Reporting.FilePerms'), preserve_default=True, ), migrations.AddField( @@ -255,7 +255,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='interaction', name='profile', - field=models.ForeignKey(related_name='+', to='Reporting.Group'), + field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='Reporting.Group'), preserve_default=True, ), migrations.AddField( @@ -275,7 +275,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='client', name='current_interaction', - field=models.ForeignKey(related_name='parent_client', blank=True, to='Reporting.Interaction', null=True), + field=models.ForeignKey(on_delete=models.CASCADE, related_name='parent_client', blank=True, to='Reporting.Interaction', null=True), preserve_default=True, ), ] |