Added OR IGNORE to an INSERT statement in schema.
This commit is contained in:
parent
b7de10e790
commit
76830d4468
@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS `category` (
|
|||||||
PRIMARY KEY (`category_id`),
|
PRIMARY KEY (`category_id`),
|
||||||
UNIQUE (`name`) );
|
UNIQUE (`name`) );
|
||||||
|
|
||||||
INSERT INTO `category`
|
INSERT OR IGNORE INTO `category`
|
||||||
VALUES
|
VALUES
|
||||||
(1, 'Update'),
|
(1, 'Update'),
|
||||||
(2, 'Diary');
|
(2, 'Diary');
|
||||||
|
Loading…
Reference in New Issue
Block a user