diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-27 13:44:47 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-27 13:44:47 -0500 |
| commit | e47da20db9dd5f5d0a09ffcf2b17ad4e1d78115b (patch) | |
| tree | 887257df85237985f07a799f8f6001a06e371e3c /Omni/Jr/Web | |
| parent | 1d8553c5ffd7f2a063078840886acb24153e9854 (diff) | |
Implement proper schema migrations for ALTER TABLE
All tests pass. The implementation adds:
1. **`runMigrations`** - Called at the end of `initTaskDb` to run
migrat 2. **`migrateTable`** - Compares expected columns against
existing colum 3. **`getTableColumns`** - Uses `PRAGMA table_info` to
get existing colu 4. **`addColumn`** - Runs `ALTER TABLE ADD COLUMN`
for missing columns 5. **Column definitions** - Lists of expected
columns for `task_activity
When new columns are added to the schema in the future, you just
add the
Task-Id: t-152.3
Diffstat (limited to 'Omni/Jr/Web')
0 files changed, 0 insertions, 0 deletions
