(conn: SqliteDatabase)
| 149 | } |
| 150 | |
| 151 | const columnNames = (conn: SqliteDatabase): string[] => |
| 152 | (conn.prepare('PRAGMA table_info(files)').all() as Array<{ name: string }>).map((c) => c.name); |
| 153 | |
| 154 | it('adds the column and the partial index without touching existing rows', () => { |
| 155 | const conn = makeLegacyDb(); |
no test coverage detected