updating migrations and resetting the db
This commit is contained in:
parent
afcd5ba075
commit
2dce6e02ab
@ -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());")
|
|
1
migrations/20240821195138_seed_widgets.down.fizz
Normal file
1
migrations/20240821195138_seed_widgets.down.fizz
Normal file
@ -0,0 +1 @@
|
|||||||
|
drop_table("widgets")
|
3
migrations/20240821195138_seed_widgets.up.fizz
Normal file
3
migrations/20240821195138_seed_widgets.up.fizz
Normal 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');")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user