updating migrations and resetting the db

This commit is contained in:
vinchent 2024-08-21 22:01:34 +02:00
parent afcd5ba075
commit 2dce6e02ab
3 changed files with 4 additions and 1 deletions

View File

@ -9,4 +9,3 @@ create_table("widgets") {
sql("alter table widgets alter column created_at set default now();") sql("alter table widgets alter column created_at set default now();")
sql("alter table widgets alter column updated_at set default now();") sql("alter table widgets alter column updated_at set default now();")
sql("insert into widgets (name, description, inventory_level, price, created_at, updated_at) values ('Widget', 'A very nice widget.', 10, 1000, now(), now());")

View File

@ -0,0 +1 @@
drop_table("widgets")

View File

@ -0,0 +1,3 @@
sql("insert into widgets (name, description, inventory_level, price, created_at, updated_at, image, is_recurring, plan_id) values ('Widget', 'A very nice widget.', 10, 1000, now(), now(), '/static/img/widget.jpeg', 0, '');")
sql("insert into widgets (name, description, inventory_level, price, created_at, updated_at, image, is_recurring, plan_id) values ('Bronze Plan', 'Get three widgets for the price of two every month', 10, 2000, now(), now(), '', 1, 'price_1Pmhmi2Mpv4bW2TDiyY6UsrE');")