mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 11:39:41 +03:00
feat(console): add workspace migration timestamp (#46627)
This commit is contained in:
committed by
GitHub
Unverified
parent
ebece6efd7
commit
5341a5e442
@@ -0,0 +1 @@
|
||||
ALTER TABLE `workspace` ADD `migrated_at` timestamp(3);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
import { boolean, json, primaryKey, mysqlTable, uniqueIndex, varchar } from "drizzle-orm/mysql-core"
|
||||
import { timestamps, ulid } from "../drizzle/types"
|
||||
import { timestamps, ulid, utc } from "../drizzle/types"
|
||||
|
||||
export const WorkspaceTable = mysqlTable(
|
||||
"workspace",
|
||||
@@ -12,6 +12,7 @@ export const WorkspaceTable = mysqlTable(
|
||||
is_blocked: boolean(),
|
||||
is_flagged_by_anthropic: boolean(),
|
||||
is_flagged_by_openai: boolean(),
|
||||
migrated_at: utc("migrated_at"),
|
||||
...timestamps,
|
||||
},
|
||||
(table) => [uniqueIndex("slug").on(table.slug)],
|
||||
|
||||
Reference in New Issue
Block a user