summaryrefslogtreecommitdiffhomepage
path: root/internal/db/migrations
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-02 09:24:24 -0500
committerAdam <[email protected]>2025-05-02 15:24:47 -0500
commit49423da081d6fdffb0bd7275e070a2edeb28e3b5 (patch)
tree3119b731ecd46ff8ef3c26d779c0420c7dfe6c9e /internal/db/migrations
parent364cf5b429c3dd6952d45c3361765aa3898e6326 (diff)
downloadopencode-49423da081d6fdffb0bd7275e070a2edeb28e3b5.tar.gz
opencode-49423da081d6fdffb0bd7275e070a2edeb28e3b5.zip
feat: compact command with auto-compact
Diffstat (limited to 'internal/db/migrations')
-rw-r--r--internal/db/migrations/20250502063010_add_summary_to_sessions.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/db/migrations/20250502063010_add_summary_to_sessions.sql b/internal/db/migrations/20250502063010_add_summary_to_sessions.sql
new file mode 100644
index 000000000..9cecfcedb
--- /dev/null
+++ b/internal/db/migrations/20250502063010_add_summary_to_sessions.sql
@@ -0,0 +1,11 @@
+-- +goose Up
+-- +goose StatementBegin
+ALTER TABLE sessions ADD COLUMN summary TEXT;
+ALTER TABLE sessions ADD COLUMN summarized_at INTEGER;
+-- +goose StatementEnd
+
+-- +goose Down
+-- +goose StatementBegin
+ALTER TABLE sessions DROP COLUMN summarized_at;
+ALTER TABLE sessions DROP COLUMN summary;
+-- +goose StatementEnd \ No newline at end of file