Skip to content
Snippets Groups Projects
Verified Commit 0811afdc authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12070 TIME 1 regex replace @user

parent 2c677774
No related branches found
No related tags found
No related merge requests found
...@@ -243,8 +243,8 @@ DO $$ BEGIN ...@@ -243,8 +243,8 @@ DO $$ BEGIN
ALTER TABLE res_letterbox ALTER COLUMN typist_tmp set not null; ALTER TABLE res_letterbox ALTER COLUMN typist_tmp set not null;
ALTER TABLE res_letterbox DROP COLUMN IF EXISTS typist; ALTER TABLE res_letterbox DROP COLUMN IF EXISTS typist;
ALTER TABLE res_letterbox RENAME COLUMN typist_tmp TO typist; ALTER TABLE res_letterbox RENAME COLUMN typist_tmp TO typist;
UPDATE baskets SET basket_clause = REPLACE(basket_clause, 'typist = @user', 'typist = @user_id'); UPDATE baskets SET basket_clause = REGEXP_REPLACE(basket_clause, 'typist(\s*)=(\s*)@user', 'typist = @user_id', 'gmi');
UPDATE security SET where_clause = REPLACE(where_clause, 'typist = @user', 'typist = @user_id'); UPDATE security SET where_clause = REGEXP_REPLACE(where_clause, 'typist(\s*)=(\s*)@user', 'typist = @user_id', 'gmi');
END IF; END IF;
END$$; END$$;
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"ng2-dnd": "^5.0.2", "ng2-dnd": "^5.0.2",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"nodemon": "^1.19.1", "nodemon": "^1.19.1",
"npm-check-updates": "^3.1.24", "npm-check-updates": "^3.1.25",
"rxjs": "^6.5.2", "rxjs": "^6.5.2",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"typescript": "3.5.3", "typescript": "3.5.3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment