Alter table only if it exists

This commit is contained in:
Till Faelligen 2023-07-28 15:17:07 +02:00
parent 9b7d27dd87
commit 72ee3827ba
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

@ -1,6 +1,6 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE syncv3_device_data DROP COLUMN IF EXISTS id;
ALTER TABLE IF EXISTS syncv3_device_data DROP COLUMN IF EXISTS id;
DROP SEQUENCE IF EXISTS syncv3_device_data_seq;
-- +goose StatementEnd