diff --git a/core/migrations/0017_order_human_readable_id.py b/core/migrations/0017_order_human_readable_id.py new file mode 100644 index 00000000..e5fc9e8e --- /dev/null +++ b/core/migrations/0017_order_human_readable_id.py @@ -0,0 +1,19 @@ +# Generated by Django 5.1.8 on 2025-05-06 13:58 + +import core.utils +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0016_alter_product_slug'), + ] + + operations = [ + migrations.AddField( + model_name='order', + name='human_readable_id', + field=models.CharField(default=core.utils.generate_human_readable_id, help_text='a human-readable identifier for the order', max_length=6, verbose_name='human readable id'), + ), + ] diff --git a/core/migrations/0018_alter_order_human_readable_id.py b/core/migrations/0018_alter_order_human_readable_id.py new file mode 100644 index 00000000..7f41dd5d --- /dev/null +++ b/core/migrations/0018_alter_order_human_readable_id.py @@ -0,0 +1,19 @@ +# Generated by Django 5.1.8 on 2025-05-06 13:58 + +import core.utils +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0017_order_human_readable_id'), + ] + + operations = [ + migrations.AlterField( + model_name='order', + name='human_readable_id', + field=models.CharField(default=core.utils.generate_human_readable_id, help_text='a human-readable identifier for the order', max_length=6, unique=True, verbose_name='human readable id'), + ), + ]