mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import type { Migration } from '../migration-runner'
|
|
import { ensureSessionGoalsTable } from '../session-goals'
|
|
|
|
const migration: Migration = {
|
|
id: '026-session-goals',
|
|
legacy: { version: 26, name: 'session-goals' },
|
|
up(db) {
|
|
ensureSessionGoalsTable(db)
|
|
},
|
|
down(db) {
|
|
db.run('DROP TABLE IF EXISTS session_goals')
|
|
},
|
|
}
|
|
|
|
export default migration
|