aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/migrations
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-19 19:43:59 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-19 19:43:59 +0100
commit1e1a2f6ac2cadfbc57cc855a67498af097391caf (patch)
tree8e28486d182d6b4746d4feb22347badf21f5465d /alphabetlearning/payments/migrations
parentae9bc97c743ea4d31a3f392db72a948d87d3b2ab (diff)
Changes the Resource to include Stripe reference
Diffstat (limited to 'alphabetlearning/payments/migrations')
-rw-r--r--alphabetlearning/payments/migrations/0008_remove_price_product_price_resource.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/alphabetlearning/payments/migrations/0008_remove_price_product_price_resource.py b/alphabetlearning/payments/migrations/0008_remove_price_product_price_resource.py
new file mode 100644
index 0000000..9d52284
--- /dev/null
+++ b/alphabetlearning/payments/migrations/0008_remove_price_product_price_resource.py
@@ -0,0 +1,25 @@
+# Generated by Django 5.0.4 on 2024-10-19 15:11
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('payments', '0007_remove_cartitem_quantity_and_more'),
+ ('resources', '0020_remove_resource_price_resource_stripe_product_id'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='price',
+ name='product',
+ ),
+ migrations.AddField(
+ model_name='price',
+ name='resource',
+ field=models.ForeignKey(default=66, on_delete=django.db.models.deletion.CASCADE, related_name='price', to='resources.resource'),
+ preserve_default=False,
+ ),
+ ]