Allow updating production plan responsibility
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m13s

This commit is contained in:
Cauê Faleiros
2026-08-25 16:42:51 -03:00
parent c259ddea29
commit 3a0cc9ffe8
6 changed files with 97 additions and 41 deletions

View File

@@ -796,7 +796,8 @@ const initDB = async () => {
// role-based assignments be added without changing historical plans.
await pool.query(`
ALTER TABLE production_plans
ADD COLUMN IF NOT EXISTS responsible_user_id INTEGER REFERENCES app_users(id) ON DELETE SET NULL;
ADD COLUMN IF NOT EXISTS responsible_user_id INTEGER REFERENCES app_users(id) ON DELETE SET NULL,
ADD COLUMN IF NOT EXISTS responsible_name TEXT;
`).catch(() => {});
await pool.query(`