Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Drop Product.charge_taxes from DB (#13381)

Marcin Gębalabc3d3ca65b9b
diff --git a/saleor/product/migrations/0186_remove_product_charge_taxes.py b/saleor/product/migrations/0186_remove_product_charge_taxes.py
new file mode 100644
index 0000000000..1430462afc
--- /dev/null
+++ b/saleor/product/migrations/0186_remove_product_charge_taxes.py
@@ -0,0 +1,24 @@
+# Generated by Django 3.2.19 on 2023-07-12 10:16
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("product", "0185_unmount_product_charge_taxes"),
+ ]
+
+ database_operations = [
+ migrations.RunSQL(
+ sql="ALTER TABLE product_product DROP COLUMN charge_taxes;",
+ reverse_sql="""
+ ALTER TABLE product_product
+ ADD COLUMN charge_taxes
+ BOOLEAN;
+ """,
+ )
+ ]
+
+ operations = [
+ migrations.SeparateDatabaseAndState(database_operations=database_operations),
+ ]