diff --git a/ecommerce/extensions/catalogue/migrations/0027_catalogue_entitlement_option.py b/ecommerce/extensions/catalogue/migrations/0027_catalogue_entitlement_option.py index 99f0d6e6b26..70c4ba58d02 100644 --- a/ecommerce/extensions/catalogue/migrations/0027_catalogue_entitlement_option.py +++ b/ecommerce/extensions/catalogue/migrations/0027_catalogue_entitlement_option.py @@ -32,10 +32,35 @@ class Migration(migrations.Migration): ] operations = [ + migrations.AddField( + model_name='option', + name='help_text', + field=models.CharField(blank=True, help_text='Help text shown to the user on the add to basket form', max_length=255, null=True, verbose_name='Help text'), + ), + migrations.AddField( + model_name='option', + name='option_group', + field=models.ForeignKey(blank=True, help_text='Select an option group if using type "Option" or "Multi Option"', null=True, on_delete=models.deletion.CASCADE, related_name='product_options', to='catalogue.attributeoptiongroup', verbose_name='Option Group'), + ), + migrations.AddField( + model_name='option', + name='order', + field=models.IntegerField(blank=True, db_index=True, help_text='Controls the ordering of product options on product detail pages', null=True, verbose_name='Ordering'), + ), migrations.AddField( model_name='option', name='required', field=models.BooleanField(default=False, verbose_name='Is this option required?'), ), + migrations.AlterField( + model_name='option', + name='name', + field=models.CharField(db_index=True, max_length=128, verbose_name='Name'), + ), + migrations.AlterField( + model_name='option', + name='type', + field=models.CharField(choices=[('text', 'Text'), ('integer', 'Integer'), ('boolean', 'True / False'), ('float', 'Float'), ('date', 'Date'), ('select', 'Select'), ('radio', 'Radio'), ('multi_select', 'Multi select'), ('checkbox', 'Checkbox')], default='text', max_length=255, verbose_name='Type'), + ), migrations.RunPython(create_entitlement_option, remove_entitlement_option), ] diff --git a/ecommerce/extensions/catalogue/migrations/0056_auto_20230824_1028.py b/ecommerce/extensions/catalogue/migrations/0056_auto_20230824_1028.py index bf8e536c5a1..edfd937181d 100644 --- a/ecommerce/extensions/catalogue/migrations/0056_auto_20230824_1028.py +++ b/ecommerce/extensions/catalogue/migrations/0056_auto_20230824_1028.py @@ -66,21 +66,21 @@ class Migration(migrations.Migration): name='meta_title', field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Meta title'), ), - migrations.AddField( - model_name='option', - name='help_text', - field=models.CharField(blank=True, help_text='Help text shown to the user on the add to basket form', max_length=255, null=True, verbose_name='Help text'), - ), - migrations.AddField( - model_name='option', - name='option_group', - field=models.ForeignKey(blank=True, help_text='Select an option group if using type "Option" or "Multi Option"', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='product_options', to='catalogue.attributeoptiongroup', verbose_name='Option Group'), - ), - migrations.AddField( - model_name='option', - name='order', - field=models.IntegerField(blank=True, db_index=True, help_text='Controls the ordering of product options on product detail pages', null=True, verbose_name='Ordering'), - ), + # migrations.AddField( + # model_name='option', + # name='help_text', + # field=models.CharField(blank=True, help_text='Help text shown to the user on the add to basket form', max_length=255, null=True, verbose_name='Help text'), + # ), + # migrations.AddField( + # model_name='option', + # name='option_group', + # field=models.ForeignKey(blank=True, help_text='Select an option group if using type "Option" or "Multi Option"', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='product_options', to='catalogue.attributeoptiongroup', verbose_name='Option Group'), + # ), + # migrations.AddField( + # model_name='option', + # name='order', + # field=models.IntegerField(blank=True, db_index=True, help_text='Controls the ordering of product options on product detail pages', null=True, verbose_name='Ordering'), + # ), # migrations.AddField( # model_name='option', # name='required', @@ -116,16 +116,16 @@ class Migration(migrations.Migration): name='value_boolean', field=models.BooleanField(blank=True, db_index=True, null=True, verbose_name='Boolean'), ), - migrations.AlterField( - model_name='option', - name='name', - field=models.CharField(db_index=True, max_length=128, verbose_name='Name'), - ), - migrations.AlterField( - model_name='option', - name='type', - field=models.CharField(choices=[('text', 'Text'), ('integer', 'Integer'), ('boolean', 'True / False'), ('float', 'Float'), ('date', 'Date'), ('select', 'Select'), ('radio', 'Radio'), ('multi_select', 'Multi select'), ('checkbox', 'Checkbox')], default='text', max_length=255, verbose_name='Type'), - ), + # migrations.AlterField( + # model_name='option', + # name='name', + # field=models.CharField(db_index=True, max_length=128, verbose_name='Name'), + # ), + # migrations.AlterField( + # model_name='option', + # name='type', + # field=models.CharField(choices=[('text', 'Text'), ('integer', 'Integer'), ('boolean', 'True / False'), ('float', 'Float'), ('date', 'Date'), ('select', 'Select'), ('radio', 'Radio'), ('multi_select', 'Multi select'), ('checkbox', 'Checkbox')], default='text', max_length=255, verbose_name='Type'), + # ), migrations.AlterField( model_name='product', name='slug',