init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE facilities
MODIFY COLUMN electric VARCHAR(255) NOT NULL DEFAULT '';
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
UPDATE facilities
SET electric = CASE
WHEN LOWER(TRIM(electric)) IN ('', '0', 'false', 'no', 'n') THEN '0'
ELSE '1'
END;
ALTER TABLE facilities
MODIFY COLUMN electric TINYINT(1) NOT NULL DEFAULT 0;
-- +goose StatementEnd