improve admin release and deployment safeguards
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-09 09:46:43 +09:00
parent da30d88688
commit c2f834e92d
6 changed files with 101 additions and 7 deletions
@@ -1,3 +1,8 @@
ALTER TABLE IF EXISTS "launcher_common_settings" RENAME TO "launcher_settings";
COMMENT ON TABLE "launcher_settings" IS '런처 소스, 빌드 환경 등 내부 설정';
DO $$
BEGIN
IF to_regclass('public.launcher_settings') IS NOT NULL THEN
COMMENT ON TABLE "launcher_settings" IS '런처 소스, 빌드 환경 등 내부 설정';
END IF;
END $$;
@@ -24,9 +24,9 @@ CREATE UNIQUE INDEX IF NOT EXISTS "admin_roles_code_key"
CREATE INDEX IF NOT EXISTS "admin_roles_is_active_sort_order_idx"
ON "admin_roles"("is_active", "sort_order");
INSERT INTO "admin_roles" ("code", "name", "description", "sort_order", "is_active")
INSERT INTO "admin_roles" ("id", "code", "name", "description", "sort_order", "is_active", "updated_at")
VALUES
('OWNER', 'OWNER', '전체 관리자 권한', 1, true),
('ADMIN', 'ADMIN', '관리자 권한', 2, true),
('VIEWER', 'VIEWER', '조회 권한', 3, true)
(gen_random_uuid(), 'OWNER', 'OWNER', '전체 관리자 권한', 1, true, CURRENT_TIMESTAMP),
(gen_random_uuid(), 'ADMIN', 'ADMIN', '관리자 권한', 2, true, CURRENT_TIMESTAMP),
(gen_random_uuid(), 'VIEWER', 'VIEWER', '조회 권한', 3, true, CURRENT_TIMESTAMP)
ON CONFLICT ("code") DO NOTHING;
@@ -0,0 +1,5 @@
ALTER TABLE "build_jobs"
ADD COLUMN IF NOT EXISTS "release_candidate_hidden_at" TIMESTAMPTZ(3);
CREATE INDEX IF NOT EXISTS "build_jobs_release_candidate_hidden_at_idx"
ON "build_jobs"("release_candidate_hidden_at");