migrate db

This commit is contained in:
Jun-te Kim 2025-12-13 21:48:27 +00:00
parent d1ba6bce1c
commit cb03b1fd31

View file

@ -1,13 +1,14 @@
env "stripe_invoice_dev" { env "stripe_invoice_dev" {
url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_dev?sslmode=disable" url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_dev?sslmode=disable"
migration { migration {
dir = "file://atlas/stripe_invoice/migrations" dir = "file://./stripe_invoice/migrations"
} }
} }
env "stripe_invoice_prod" { env "stripe_invoice_prod" {
url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_prod?sslmode=disable" url = "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:5432/stripe_invoice_prod?sslmode=disable"
migration { migration {
dir = "file://atlas/stripe_invoice/migrations" dir = "file://./stripe_invoice/migrations"
} }
} }