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,3 @@
ALTER TABLE `User`
ADD COLUMN IF NOT EXISTS `algo` VARCHAR(20) NOT NULL DEFAULT 'default' COMMENT 'Encryption Algorithm' AFTER `password`,
ADD COLUMN IF NOT EXISTS `salt` VARCHAR(20) NOT NULL DEFAULT 'default' COMMENT 'Password Salt' AFTER `algo`;