fix(user): update SQL migration scripts to use IF NOT EXISTS for column additions

This commit is contained in:
Chang lue Tsen
2025-10-17 10:20:12 -04:00
parent 1b76794251
commit 2dae837323
7 changed files with 17 additions and 17 deletions
@@ -0,0 +1,7 @@
INSERT INTO `system` (`category`, `key`, `value`, `type`, `desc`, `created_at`, `updated_at`)
SELECT 'site', 'CustomData', '{
"kr_website_id": ""
}', 'string', 'Custom Data', '2025-04-22 14:25:16.637', '2025-10-14 15:47:19.187'
WHERE NOT EXISTS (
SELECT 1 FROM `system` WHERE `category` = 'site' AND `key` = 'CustomData'
);