init push
This commit is contained in:
17
migrations/20260424_lands_opcs_is_active.sql
Normal file
17
migrations/20260424_lands_opcs_is_active.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- +goose Up
|
||||
ALTER TABLE lands
|
||||
ADD COLUMN IF NOT EXISTS is_active TINYINT(1) NOT NULL DEFAULT 1,
|
||||
ADD KEY idx_lands_is_active (is_active);
|
||||
|
||||
ALTER TABLE opcs
|
||||
ADD COLUMN IF NOT EXISTS is_active TINYINT(1) NOT NULL DEFAULT 1,
|
||||
ADD KEY idx_opcs_is_active (is_active);
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE lands
|
||||
DROP KEY idx_lands_is_active,
|
||||
DROP COLUMN IF EXISTS is_active;
|
||||
|
||||
ALTER TABLE opcs
|
||||
DROP KEY idx_opcs_is_active,
|
||||
DROP COLUMN IF EXISTS is_active;
|
||||
Reference in New Issue
Block a user