修正
This commit is contained in:
16
backend/sql/create_fiscal_year_locks.sql
Normal file
16
backend/sql/create_fiscal_year_locks.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- 会計年度ロックテーブルの作成
|
||||
CREATE TABLE IF NOT EXISTS fiscal_year_locks (
|
||||
fiscal_year INTEGER PRIMARY KEY,
|
||||
is_locked BOOLEAN DEFAULT false,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- デフォルト行を挿入(2024年~2026年)
|
||||
DELETE FROM fiscal_year_locks;
|
||||
INSERT INTO fiscal_year_locks (fiscal_year, is_locked) VALUES
|
||||
(2024, false),
|
||||
(2025, false),
|
||||
(2026, false);
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user