Skip to content

Commit

Permalink
Merge pull request #1471 from edissyum/dev
Browse files Browse the repository at this point in the history
3.3.1
  • Loading branch information
nathan30 authored Sep 17, 2024
2 parents e5b7910 + b46123e commit 7bbaf5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/migration_bash/3.3.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ for custom_name in ${SECTIONS[@]}; do
unset PGPASSWORD
done

#####################
# Add attachments docservers
for custom_folders in $(ls $docserverDefaultPath); do
mkdir -p $docserverDefaultPath/$custom_folders/verifier/attachments/
mkdir -p $docserverDefaultPath/$custom_folders/splitter/attachments/
done

#####################
# Restart apache2
systemctl restart apache2
11 changes: 11 additions & 0 deletions install/migration_sql/3.3.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,14 @@ ALTER TABLE mailcollect ADD COLUMN scopes VARCHAR DEFAULT 'https://outlook.offic
ALTER TABLE mailcollect ADD COLUMN authority VARCHAR DEFAULT 'https://login.microsoftonline.com/';

INSERT INTO configurations ("label", "data") VALUES ('enableProcessWatcher', '{"type": "bool", "value": true, "description": "Activer l''affichage des processus en cours en bas à droite de l''écran"}');

CREATE TABLE "attachments" (
"id" SERIAL UNIQUE PRIMARY KEY,
"document_id" INTEGER,
"batch_id" INTEGER,
"filename" VARCHAR(255),
"path" VARCHAR(255),
"thumbnail_path" VARCHAR(255),
"status" VARCHAR(10) DEFAULT 'OK',
"creation_date" TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

0 comments on commit 7bbaf5f

Please sign in to comment.