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,
`name` TEXT NOT NULL,
PRIMARY KEY (`category_id`),
UNIQUE (`name`)
);
UNIQUE (`name`) );
INSERT INTO `category`
VALUES
@ -21,5 +20,4 @@ CREATE TABLE IF NOT EXISTS `post` (
FOREIGN KEY (`category_id`)
REFERENCES `category` (`category_id`)
ON DELETE CASCADE
ON UPDATE CASCADE );
);
ON UPDATE CASCADE );