21 lines
732 B
SQL
21 lines
732 B
SQL
CREATE TABLE `project_content` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`content` blob
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE `project_files` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`path` text NOT NULL,
|
|
`owner` integer NOT NULL,
|
|
`title` text NOT NULL,
|
|
`type` text NOT NULL,
|
|
`navigable` integer DEFAULT true NOT NULL,
|
|
`private` integer DEFAULT false NOT NULL,
|
|
`order` integer NOT NULL,
|
|
`timestamp` integer NOT NULL,
|
|
FOREIGN KEY (`owner`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE cascade
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX `project_files_path_unique` ON `project_files` (`path`);--> statement-breakpoint
|
|
DROP TABLE `explorer_content`;--> statement-breakpoint
|
|
ALTER TABLE `users_data` DROP COLUMN `logCount`; |