Skip to content

Commit

Permalink
Drop created from the DB (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
IKarbowiak authored May 27, 2023
1 parent d6da337 commit ac70e7c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("product", "0005_remove_product_created_alter_product_created_at"),
]

operations = [
migrations.SeparateDatabaseAndState(
database_operations=[
# remove the `created` column from the DB
migrations.RunSQL(
sql="""
ALTER TABLE product_product
DROP COLUMN created;
""",
)
],
)
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Django 4.2.1 on 2023-05-27 09:46

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("product", "0006_remove_created_from_db"),
("product", "0007_merge_20230526_2121"),
]

operations = []

0 comments on commit ac70e7c

Please sign in to comment.