You've already forked obsidian-visualiser
WebSocket API, new ID/encrypt/decrypt algorithm.
This commit is contained in:
17
drizzle/0024_secret_arclight.sql
Normal file
17
drizzle/0024_secret_arclight.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_campaign_logs` (
|
||||
`id` integer,
|
||||
`target` integer,
|
||||
`timestamp` integer NOT NULL,
|
||||
`type` text,
|
||||
`details` text NOT NULL,
|
||||
PRIMARY KEY(`id`, `target`, `timestamp`),
|
||||
FOREIGN KEY (`id`) REFERENCES `campaign`(`id`) ON UPDATE cascade ON DELETE cascade,
|
||||
FOREIGN KEY (`target`) REFERENCES `campaign_characters`(`character`) ON UPDATE cascade ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_campaign_logs`("id", "target", "timestamp", "type", "details") SELECT "id", "target", "timestamp", "type", "details" FROM `campaign_logs`;--> statement-breakpoint
|
||||
DROP TABLE `campaign_logs`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_campaign_logs` RENAME TO `campaign_logs`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
ALTER TABLE `campaign` ADD `settings` text DEFAULT '{}';
|
||||
Reference in New Issue
Block a user