(name: string)
| 140 | // version, as the v6 regression test does). |
| 141 | const cols = db.prepare('PRAGMA table_info(unresolved_refs)').all() as Array<{ name: string }>; |
| 142 | const hasColumn = (name: string) => cols.some((c) => c.name === name); |
| 143 | if (!hasColumn('status')) { |
| 144 | db.exec("ALTER TABLE unresolved_refs ADD COLUMN status TEXT NOT NULL DEFAULT 'pending'"); |
| 145 | } |