You've already forked obsidian-visualiser
Add permissions
This commit is contained in:
12
drizzle/0002_messy_solo.sql
Normal file
12
drizzle/0002_messy_solo.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_user_permissions` (
|
||||
`id` integer NOT NULL,
|
||||
`permission` text NOT NULL,
|
||||
PRIMARY KEY(`id`, `permission`),
|
||||
FOREIGN KEY (`id`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_user_permissions`("id", "permission") SELECT "id", "permission" FROM `user_permissions`;--> statement-breakpoint
|
||||
DROP TABLE `user_permissions`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_user_permissions` RENAME TO `user_permissions`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;
|
||||
Reference in New Issue
Block a user