Commit 8a84a07c authored by Florian Azizian's avatar Florian Azizian

FIX migration and data

parent d587f256
......@@ -508,7 +508,7 @@ INSERT INTO custom_fields (id, label, type, values) VALUES (1, 'Nature', 'select
SELECT setval('custom_fields_id_seq', (select max(id)+1 from custom_fields), false);
DO $$ BEGIN
IF (SELECT count(attname) FROM pg_attribute WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'mlb_coll_ext')) THEN
IF (SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'mlb_coll_ext')) THEN
TRUNCATE TABLE resources_custom_fields;
INSERT INTO resources_custom_fields (res_id, custom_field_id, value)
SELECT res_id, 1, '"Courrier simple"' FROM mlb_coll_ext WHERE nature_id = 'simple_mail';
......
......@@ -20,7 +20,7 @@
"chosen-js": "^1.8.7",
"core-js": "^2.6.9",
"jquery": "^3.4.1",
"jquery-typeahead": "^2.10.7",
"jquery-typeahead": "^2.11.0",
"jquery.nicescroll": "~3.6.8",
"jstree-bootstrap-theme": "^1.0.1",
"ng2-pdf-viewer": "^5.3.4",
......@@ -35,10 +35,10 @@
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.15",
"@angular-devkit/build-angular": "^0.803.17",
"@angular/animations": "^8.2.12",
"@angular/cdk": "^8.2.0",
"@angular/cli": "^8.3.15",
"@angular/cli": "^8.3.17",
"@angular/common": "^8.2.12",
"@angular/compiler": "^8.2.12",
"@angular/compiler-cli": "^8.2.12",
......@@ -59,7 +59,7 @@
"ng2-dnd": "^5.0.2",
"node-sass": "^4.13.0",
"nodemon": "^1.19.1",
"npm-check-updates": "^3.1.25",
"npm-check-updates": "^3.2.0",
"rxjs": "^6.5.2",
"tslib": "^1.10.0",
"typescript": "3.5.3",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment