From 0441bc29b72de20837cc7a200542dc86dd5c3bcd Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 29 Jun 2023 15:24:41 +0200 Subject: [PATCH] refs #5475 correct SQL folder --- db/changes/231801/00-userAcl.sql | 2 +- db/changes/232601/00-user.sql | 2 -- db/changes/{232601 => 232801}/00-authCode.sql | 0 db/changes/{232601 => 232801}/00-department.sql | 0 db/changes/232801/00-user.sql | 5 +++++ 5 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 db/changes/232601/00-user.sql rename db/changes/{232601 => 232801}/00-authCode.sql (100%) rename db/changes/{232601 => 232801}/00-department.sql (100%) create mode 100644 db/changes/232801/00-user.sql diff --git a/db/changes/231801/00-userAcl.sql b/db/changes/231801/00-userAcl.sql index f84a4d7c3..9eb3ebf28 100644 --- a/db/changes/231801/00-userAcl.sql +++ b/db/changes/231801/00-userAcl.sql @@ -2,7 +2,7 @@ INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalTyp VALUES ('VnUser','acl','READ','ALLOW','ROLE','account'), ('VnUser','getCurrentUserData','READ','ALLOW','ROLE','account'), - ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'), ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'); + ('VnUser','changePassword', 'WRITE', 'ALLOW', 'ROLE', 'account'), ('Account','exists','READ','ALLOW','ROLE','account'); INSERT INTO `salix`.`ACL` (model, property, accessType, permission, principalType, principalId) diff --git a/db/changes/232601/00-user.sql b/db/changes/232601/00-user.sql deleted file mode 100644 index 2a2a522c5..000000000 --- a/db/changes/232601/00-user.sql +++ /dev/null @@ -1,2 +0,0 @@ -alter table `account`.`user` - add `twoFactor` ENUM ('email') null comment 'Two-factor auth type'; \ No newline at end of file diff --git a/db/changes/232601/00-authCode.sql b/db/changes/232801/00-authCode.sql similarity index 100% rename from db/changes/232601/00-authCode.sql rename to db/changes/232801/00-authCode.sql diff --git a/db/changes/232601/00-department.sql b/db/changes/232801/00-department.sql similarity index 100% rename from db/changes/232601/00-department.sql rename to db/changes/232801/00-department.sql diff --git a/db/changes/232801/00-user.sql b/db/changes/232801/00-user.sql new file mode 100644 index 000000000..376b3dbb1 --- /dev/null +++ b/db/changes/232801/00-user.sql @@ -0,0 +1,5 @@ +alter table `account`.`user` + add `twoFactor` ENUM ('email') null comment 'Two-factor auth type'; + +DELETE FROM `salix`.`ACL` + WHERE model = 'VnUser' AND property = 'changePassword';