Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge gift card migrations and update chagelog (#8077)
Iga Karbowiak2c283a8a13fa
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e3553f2181..5f03834e71 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,9 +5,8 @@ All notable, unreleased changes to this project will be documented in this file.# 3.1.0 [Unreleased]- Extend app by `AppExtension` - #7701 by @korycins- Add ExternalNotificationTrigger mutation - #7821 by @mstrumeck--- Add Click&Collect feature - #7673 by @kuchichan+- Introduce gift card feature - #7827 by @IKarbowiak, @tomaszszymanski129# 3.0.0 [Unreleased]diff --git a/saleor/giftcard/migrations/0008_alter_giftcardevent_type.py b/saleor/giftcard/migrations/0008_alter_giftcardevent_type.pydeleted file mode 100644index 510c41903f..0000000000--- a/saleor/giftcard/migrations/0008_alter_giftcardevent_type.py+++ /dev/null@@ -1,37 +0,0 @@-# Generated by Django 3.2.5 on 2021-08-07 16:33--from django.db import migrations, models---class Migration(migrations.Migration):-- dependencies = [- ("giftcard", "0007_auto_20210719_1311"),- ]-- operations = [- migrations.AlterField(- model_name="giftcardevent",- name="type",- field=models.CharField(- choices=[- ("issued", "The gift card was created be staff user or app."),- ("bought", "The gift card was bought by customer."),- ("updated", "The gift card was updated."),- ("activated", "The gift card was activated."),- ("deactivated", "The gift card was deactivated."),- ("balance_reset", "The gift card balance was reset."),- (- "expiry_settings_updated",- "The gift card expiry settings was updated.",- ),- ("expiry_date_set", "The expiry date was set."),- ("sent_to_customer", "The gift card was sent to the customer."),- ("resent", "The gift card was resent to the customer."),- ("note_added", "A note was added to the gift card."),- ("used_in_order", "The gift card was used in order."),- ],- max_length=255,- ),- ),- ]diff --git a/saleor/giftcard/migrations/0010_auto_20210818_0633.py b/saleor/giftcard/migrations/0008_auto_20210818_0633.pysimilarity index 76%rename from saleor/giftcard/migrations/0010_auto_20210818_0633.pyrename to saleor/giftcard/migrations/0008_auto_20210818_0633.pyindex 8629023d25..d49ce4ecfe 100644--- a/saleor/giftcard/migrations/0010_auto_20210818_0633.py+++ b/saleor/giftcard/migrations/0008_auto_20210818_0633.py@@ -6,10 +6,25 @@ from django.db import migrations, modelsclass Migration(migrations.Migration):dependencies = [- ("giftcard", "0009_alter_giftcard_expiry_period_type"),+ ("giftcard", "0007_auto_20210719_1311"),]operations = [+ migrations.AlterField(+ model_name="giftcard",+ name="expiry_period_type",+ field=models.CharField(+ blank=True,+ choices=[+ ("day", "Day"),+ ("week", "Week"),+ ("month", "Month"),+ ("year", "Year"),+ ],+ max_length=32,+ null=True,+ ),+ ),migrations.RemoveField(model_name="giftcard",name="expiry_period",diff --git a/saleor/giftcard/migrations/0009_alter_giftcard_expiry_period_type.py b/saleor/giftcard/migrations/0009_alter_giftcard_expiry_period_type.pydeleted file mode 100644index ab88f247a7..0000000000--- a/saleor/giftcard/migrations/0009_alter_giftcard_expiry_period_type.py+++ /dev/null@@ -1,28 +0,0 @@-# Generated by Django 3.2.5 on 2021-08-17 07:42--from django.db import migrations, models---class Migration(migrations.Migration):-- dependencies = [- ("giftcard", "0008_alter_giftcardevent_type"),- ]-- operations = [- migrations.AlterField(- model_name="giftcard",- name="expiry_period_type",- field=models.CharField(- blank=True,- choices=[- ("day", "Day"),- ("week", "Week"),- ("month", "Month"),- ("year", "Year"),- ],- max_length=32,- null=True,- ),- ),- ]