1
0

Fixed typos in mindflow's SQL schema.

This commit is contained in:
Alexander Andreev 2023-05-19 21:53:44 +04:00
parent e520526e08
commit bf0787d8b6
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -3,8 +3,7 @@ CREATE TABLE IF NOT EXISTS `category` (
`category_id` INTEGER NOT NULL, `category_id` INTEGER NOT NULL,
`name` TEXT NOT NULL, `name` TEXT NOT NULL,
PRIMARY KEY (`category_id`), PRIMARY KEY (`category_id`),
UNIQUE (`name`) UNIQUE (`name`) );
);
INSERT INTO `category` INSERT INTO `category`
VALUES VALUES
@ -22,4 +21,3 @@ CREATE TABLE IF NOT EXISTS `post` (
REFERENCES `category` (`category_id`) REFERENCES `category` (`category_id`)
ON DELETE CASCADE ON DELETE CASCADE
ON UPDATE CASCADE ); ON UPDATE CASCADE );
);