mirror of
https://github.com/willchen96/mike.git
synced 2026-06-26 21:39:39 +02:00
refactor: add table primitive and migrations by date; feat: add mcp connectors
This commit is contained in:
parent
01dfcfe0d4
commit
9a1277ba99
99 changed files with 9344 additions and 2320 deletions
|
|
@ -0,0 +1,16 @@
|
|||
-- Migration date: 2026-06-10
|
||||
|
||||
-- Keep document version tombstones after deleting version file bytes.
|
||||
-- Deleted versions remain visible in history but are ignored by active-file
|
||||
-- lookups and cannot be opened/downloaded/replaced.
|
||||
|
||||
alter table public.document_versions
|
||||
alter column storage_path drop not null;
|
||||
|
||||
alter table public.document_versions
|
||||
add column if not exists deleted_at timestamptz,
|
||||
add column if not exists deleted_by uuid;
|
||||
|
||||
create index if not exists document_versions_active_document_id_idx
|
||||
on public.document_versions(document_id, created_at desc)
|
||||
where deleted_at is null;
|
||||
Loading…
Add table
Add a link
Reference in a new issue