fix migration
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
-- +goose Up
|
-- +goose Up
|
||||||
-- +goose StatementBegin
|
-- +goose StatementBegin
|
||||||
ALTER TABLE "Updates" ADD COLUMN PlaceholderChange TEXT;
|
ALTER TABLE "Updates" ADD COLUMN PlaceholderChange TEXT;
|
||||||
ALTER TABLE "Updates" ADD COLUMN Name TEXT;
|
|
||||||
-- +goose StatementEnd
|
-- +goose StatementEnd
|
||||||
|
|
||||||
-- +goose Down
|
-- +goose Down
|
||||||
-- +goose StatementBegin
|
-- +goose StatementBegin
|
||||||
ALTER TABLE "Updates" DROP COLUMN Name;
|
|
||||||
ALTER TABLE "Updates" DROP COLUMN PlaceholderChange;
|
ALTER TABLE "Updates" DROP COLUMN PlaceholderChange;
|
||||||
-- +goose StatementEnd
|
-- +goose StatementEnd
|
||||||
|
9
db/migrations/20241002032439_add_name.sql
Normal file
9
db/migrations/20241002032439_add_name.sql
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- +goose Up
|
||||||
|
-- +goose StatementBegin
|
||||||
|
ALTER TABLE "Updates" ADD COLUMN Name TEXT;
|
||||||
|
-- +goose StatementEnd
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
-- +goose StatementBegin
|
||||||
|
ALTER TABLE "Updates" DROP COLUMN Name;
|
||||||
|
-- +goose StatementEnd
|
Reference in New Issue
Block a user