Skip to content

Commit

Permalink
Squash migration of new model
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Jun 20, 2024
1 parent cd52a71 commit f5aa66c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
17 changes: 17 additions & 0 deletions test_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,21 @@ class Migration(migrations.Migration):
'abstract': False,
},
),
migrations.CreateModel(
name='PublicData',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('modified', models.DateTimeField(auto_now=True, help_text='The date/time this resource was created')),
('created', models.DateTimeField(auto_now_add=True, help_text='The date/time this resource was created')),
('name', models.CharField(help_text='The name of this resource', max_length=512)),
('data', models.JSONField(blank=True, default=dict)),
('created_by', models.ForeignKey(default=None, editable=False, help_text='The user who created this resource', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(app_label)s_%(class)s_created+', to=settings.AUTH_USER_MODEL)),
('modified_by', models.ForeignKey(default=None, editable=False, help_text='The user who last modified this resource', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='%(app_label)s_%(class)s_modified+', to=settings.AUTH_USER_MODEL)),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='public_data', to='test_app.organization')),
],
options={
'ordering': ['id'],
'default_permissions': ('add', 'change', 'delete'),
},
),
]
32 changes: 0 additions & 32 deletions test_app/migrations/0011_publicdata.py

This file was deleted.

0 comments on commit f5aa66c

Please sign in to comment.