This commit is contained in:
2026-02-02 16:16:14 +05:00
parent cd827b0e9a
commit 0b54ca8404
11 changed files with 1185 additions and 1020 deletions

View File

@@ -276,7 +276,8 @@ function createSQLiteTables() {
rework_comment TEXT,
closed_at DATETIME,
closed_by INTEGER,
task_type TEXT DEFAULT 'regular',
task_type TEXT DEFAULT "regular",
type TEXT,
approver_group_id INTEGER,
document_id INTEGER,
FOREIGN KEY (created_by) REFERENCES users (id),
@@ -673,6 +674,7 @@ function checkAndUpdateTableStructure() {
{ name: 'closed_at', type: 'DATETIME' },
{ name: 'closed_by', type: 'INTEGER' },
{ name: 'task_type', type: 'TEXT DEFAULT "regular"' },
{ name: 'type', type: 'TEXT' },
{ name: 'approver_group_id', type: 'INTEGER' },
{ name: 'document_id', type: 'INTEGER' }
],
@@ -1058,6 +1060,7 @@ async function createPostgresTables() {
closed_at TIMESTAMP,
closed_by INTEGER REFERENCES users(id),
task_type VARCHAR(50) DEFAULT 'regular',
type VARCHAR(100),
approver_group_id INTEGER,
document_id INTEGER
)