@gzmagyari/kanbanboard 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db.mjs +4 -2
- package/package.json +1 -1
package/db.mjs
CHANGED
|
@@ -236,8 +236,6 @@ export function migrate() {
|
|
|
236
236
|
addColumnIfMissing('projects', 'status_text', `status_text TEXT NOT NULL DEFAULT ''`);
|
|
237
237
|
addColumnIfMissing('projects', 'guidelines_text', `guidelines_text TEXT NOT NULL DEFAULT ''`);
|
|
238
238
|
addColumnIfMissing('tasks', 'milestone_id', `milestone_id TEXT`);
|
|
239
|
-
addColumnIfMissing('tasks', 'assigned_agent_id', `assigned_agent_id TEXT`);
|
|
240
|
-
addColumnIfMissing('agents', 'role', `role TEXT`);
|
|
241
239
|
|
|
242
240
|
// Ensure a default project always exists
|
|
243
241
|
const now = Date.now();
|
|
@@ -354,6 +352,10 @@ export function migrate() {
|
|
|
354
352
|
CREATE INDEX IF NOT EXISTS idx_agents_project ON agents(project_id, updated_at);
|
|
355
353
|
`);
|
|
356
354
|
|
|
355
|
+
// Columns that depend on tables created above
|
|
356
|
+
addColumnIfMissing('tasks', 'assigned_agent_id', `assigned_agent_id TEXT`);
|
|
357
|
+
addColumnIfMissing('agents', 'role', `role TEXT`);
|
|
358
|
+
|
|
357
359
|
// Agent run audit log
|
|
358
360
|
db.exec(`
|
|
359
361
|
CREATE TABLE IF NOT EXISTS agent_runs (
|