1- # Generated by Django 3.2.14 on 2022-08-09 03:11
1+ # Generated by Django 3.2.14 on 2022-08-09 15:45
22
3- from django .db import migrations , models
43import django_enum .fields
4+ from django .db import migrations , models
55
66
77class Migration (migrations .Migration ):
@@ -32,6 +32,8 @@ class Migration(migrations.Migration):
3232 ('dj_int_enum' , django_enum .fields .EnumPositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
3333 ('dj_text_enum' , django_enum .fields .EnumCharField (choices = [('A' , 'Label A' ), ('B' , 'Label B' ), ('C' , 'Label C' )], default = 'A' , max_length = 1 )),
3434 ('non_strict_int' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
35+ ('non_strict_text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], default = '' , max_length = 12 )),
36+ ('no_coerce' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
3537 ],
3638 options = {
3739 'ordering' : ('id' ,),
@@ -46,6 +48,33 @@ class Migration(migrations.Migration):
4648 ('color' , django_enum .fields .EnumCharField (choices = [('R' , 'Red' ), ('G' , 'Green' ), ('B' , 'Blue' )], max_length = 1 )),
4749 ],
4850 ),
51+ migrations .CreateModel (
52+ name = 'NoCoercePerfCompare' ,
53+ fields = [
54+ ('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
55+ ('small_pos_int' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = None , null = True )),
56+ ('small_int' , django_enum .fields .EnumSmallIntegerField (blank = True , choices = [(- 32768 , 'Value -32768' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = 32767 )),
57+ ('pos_int' , django_enum .fields .EnumPositiveIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , default = 2147483647 )),
58+ ('int' , django_enum .fields .EnumIntegerField (blank = True , choices = [(- 2147483648 , 'Value -2147483648' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , null = True )),
59+ ('big_pos_int' , django_enum .fields .EnumPositiveBigIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = None , null = True )),
60+ ('big_int' , django_enum .fields .EnumBigIntegerField (blank = True , choices = [(- 2147483649 , 'Value -2147483649' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = - 2147483649 )),
61+ ('constant' , django_enum .fields .EnumFloatField (blank = True , choices = [(3.141592653589793 , 'Pi' ), (2.71828 , "Euler's Number" ), (1.618033988749895 , 'Golden Ratio' )], db_index = True , default = None , null = True )),
62+ ('text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], db_index = True , default = None , max_length = 4 , null = True )),
63+ ('int_choice' , models .IntegerField (blank = True , choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
64+ ('char_choice' , models .CharField (blank = True , choices = [('A' , 'First' ), ('B' , 'Second' ), ('C' , 'Third' )], default = 'A' , max_length = 1 )),
65+ ('int_field' , models .IntegerField (blank = True , default = 1 )),
66+ ('float_field' , models .FloatField (blank = True , default = 1.5 )),
67+ ('char_field' , models .CharField (blank = True , default = 'A' , max_length = 1 )),
68+ ('dj_int_enum' , django_enum .fields .EnumPositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
69+ ('dj_text_enum' , django_enum .fields .EnumCharField (choices = [('A' , 'Label A' ), ('B' , 'Label B' ), ('C' , 'Label C' )], default = 'A' , max_length = 1 )),
70+ ('non_strict_int' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
71+ ('non_strict_text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], default = '' , max_length = 12 )),
72+ ('no_coerce' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
73+ ],
74+ options = {
75+ 'ordering' : ('id' ,),
76+ },
77+ ),
4978 migrations .CreateModel (
5079 name = 'PerfCompare' ,
5180 fields = [
@@ -66,6 +95,8 @@ class Migration(migrations.Migration):
6695 ('dj_int_enum' , models .PositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
6796 ('dj_text_enum' , models .CharField (choices = [('A' , 'Label A' ), ('B' , 'Label B' ), ('C' , 'Label C' )], default = 'A' , max_length = 1 )),
6897 ('non_strict_int' , models .PositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
98+ ('non_strict_text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], default = '' , max_length = 12 )),
99+ ('no_coerce' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], default = None , null = True )),
69100 ],
70101 options = {
71102 'ordering' : ('id' ,),
0 commit comments