feat: migrate admins to better auth roles

This commit is contained in:
2026-06-05 23:55:45 +01:00
parent dd7eb028db
commit ee98b7147c
12 changed files with 1457 additions and 72 deletions
+6
View File
@@ -0,0 +1,6 @@
ALTER TABLE `session` ADD `impersonated_by` text;--> statement-breakpoint
ALTER TABLE `user` ADD `role` text;--> statement-breakpoint
ALTER TABLE `user` ADD `banned` integer DEFAULT false;--> statement-breakpoint
ALTER TABLE `user` ADD `ban_reason` text;--> statement-breakpoint
ALTER TABLE `user` ADD `ban_expires` integer;--> statement-breakpoint
UPDATE `user` SET `role` = 'admin' WHERE `role` IS NULL OR `role` = 'user';
File diff suppressed because it is too large Load Diff
+7
View File
@@ -36,6 +36,13 @@
"when": 1780609661307,
"tag": "0004_orange_ultimatum",
"breakpoints": true
},
{
"idx": 5,
"version": "6",
"when": 1780699922786,
"tag": "0005_bright_wiccan",
"breakpoints": true
}
]
}