feat(04-01): add list tables to schema and apply via generate+migrate [BLOCKING]
- Append lists, list_shares, list_items tables to Drizzle schema (schema.ts) - lists: owner_id FK, is_shared bool default true (D-01), idx_lists_owner_id - list_shares: list_id + user_id FKs, uniq_list_share, idx_list_shares_user_id (D-02) - list_items: rank varchar for fractional-indexing (D-13), checked bool, composite indexes - Generate 0000_easy_slipstream.sql (full schema baseline) + 0001_lists_schema.sql (new tables) - Mark 0000 as applied in __drizzle_migrations (prior tables existed from manual DDL) - Apply 0001_lists_schema.sql via db:migrate — lists/list_shares/list_items now in MariaDB - Add vitest/globals + node to tsconfig types for test file compatibility - NEVER used db:push (hard project constraint — drizzle-mariadb-push-unsafe) - typecheck passes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version": "7",
|
||||
"dialect": "mysql",
|
||||
"entries": [
|
||||
{
|
||||
"idx": 0,
|
||||
"version": "5",
|
||||
"when": 1781020239657,
|
||||
"tag": "0000_easy_slipstream",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 1,
|
||||
"version": "5",
|
||||
"when": 1781020500000,
|
||||
"tag": "0001_lists_schema",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user