-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
168 additions
and
44 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
example/postgres_tests/migrations/0002_fieldupdatenotnull.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Generated by Django 3.2.12 on 2022-04-06 13:59 | ||
|
||
import datetime | ||
from decimal import Decimal | ||
from django.db import migrations, models | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('postgres_tests', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='FieldUpdateNotNull', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('f_biginteger', models.BigIntegerField(default=0)), | ||
('f_binary', models.BinaryField(default=b'')), | ||
('f_boolean', models.BooleanField(default=False)), | ||
('f_char', models.CharField(default='', max_length=32)), | ||
('f_date', models.DateField(default=datetime.date(1000, 1, 1))), | ||
('f_datetime', models.DateTimeField(default=datetime.datetime(1000, 1, 1, 0, 0))), | ||
('f_decimal', models.DecimalField(decimal_places=2, default=Decimal('0'), max_digits=10)), | ||
('f_duration', models.DurationField(default=datetime.timedelta(1))), | ||
('f_email', models.EmailField(default='', max_length=254)), | ||
('f_float', models.FloatField(default=0.0)), | ||
('f_integer', models.IntegerField(default=0)), | ||
('f_ip', models.GenericIPAddressField(default='')), | ||
('f_json', models.JSONField(default=dict)), | ||
('f_slug', models.SlugField(default='')), | ||
('f_smallinteger', models.SmallIntegerField(default=0)), | ||
('f_text', models.TextField(default='')), | ||
('f_time', models.TimeField(default=datetime.time(1, 0))), | ||
('f_url', models.URLField(default='')), | ||
('f_uuid', models.UUIDField(default=uuid.UUID('5e0b7757-b58e-40c2-b305-a35912b4a43a'))), | ||
], | ||
), | ||
] |
31 changes: 31 additions & 0 deletions
31
example/postgres_tests/migrations/0003_auto_20220406_1404.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 3.2.12 on 2022-04-06 14:04 | ||
|
||
import datetime | ||
from django.db import migrations, models | ||
from django.utils.timezone import utc | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('postgres_tests', '0002_fieldupdatenotnull'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='fieldupdatenotnull', | ||
name='f_datetime', | ||
field=models.DateTimeField(default=datetime.datetime(1000, 1, 1, 0, 0, tzinfo=utc)), | ||
), | ||
migrations.AlterField( | ||
model_name='fieldupdatenotnull', | ||
name='f_ip', | ||
field=models.GenericIPAddressField(default='127.0.0.1'), | ||
), | ||
migrations.AlterField( | ||
model_name='fieldupdatenotnull', | ||
name='f_uuid', | ||
field=models.UUIDField(default=uuid.UUID('cb36b1fa-976a-47ae-bf8b-42efa4fa59de')), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters