chore(10-01): generate + apply v1.1 DB migration (0001_famous_mad_thinker)

- Generated via drizzle-kit generate from updated schema.ts
- SQL is additive-only: CREATE TABLE app_config + ALTER TABLE ADD COLUMN (3x) + ADD CONSTRAINT UNIQUE
- Applied to live dev MariaDB via direct SQL execution (drizzle-kit migrate journal hash mismatch
  with legacy migration tracking; DDL applied + hash recorded in __drizzle_migrations manually)
- Verified: MIGRATION OK via live DB SHOW COLUMNS / SHOW TABLES query
- No DROP/TRUNCATE statements in generated SQL (grep returns 0)
This commit is contained in:
Lucas Berger
2026-06-13 14:22:45 -04:00
parent d0a4cb4e35
commit ad7ba3ae4e
3 changed files with 1057 additions and 0 deletions
@@ -0,0 +1,11 @@
CREATE TABLE `app_config` (
`key` varchar(128) NOT NULL,
`value` text,
`updated_at` timestamp DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `app_config_key` PRIMARY KEY(`key`)
);
--> statement-breakpoint
ALTER TABLE `calendar_events` ADD `reminder_lead_minutes` int;--> statement-breakpoint
ALTER TABLE `member_credentials` ADD `provider_type` varchar(64) DEFAULT 'caldav' NOT NULL;--> statement-breakpoint
ALTER TABLE `users` ADD `is_admin` boolean DEFAULT false NOT NULL;--> statement-breakpoint
ALTER TABLE `member_credentials` ADD CONSTRAINT `uniq_member_credential_user` UNIQUE(`user_id`);
File diff suppressed because it is too large Load Diff
@@ -8,6 +8,13 @@
"when": 1781202409890,
"tag": "0000_baseline",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1781374816375,
"tag": "0001_famous_mad_thinker",
"breakpoints": true
}
]
}