Skip to content
Snippets Groups Projects
Commit 74aa2029 authored by Damien's avatar Damien
Browse files

[SQL] Migrate signatures to user_signatures table

parent 2b8cad45
No related branches found
No related tags found
No related merge requests found
......@@ -269,4 +269,7 @@ ALTER TABLE users ADD ra_expiration_date timestamp without time zone;
/** Add new service for group which have view_doc_history service **/
INSERT INTO usergroups_services SELECT group_id, 'view_full_history' FROM usergroups_services WHERE service_id = 'view_doc_history';
/** Migrate signatures to the new table **/
INSERT INTO user_signatures (user_id, signature_label, signature_path, signature_file_name) SELECT user_id, '', signature_path, signature_file_name FROM users WHERE signature_path is not null and signature_file_name is not null;
UPDATE parameters SET param_value_int = '170' WHERE id = 'database_version';
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