Fix sqlite error
This commit is contained in:
parent
c54cdc98ba
commit
ee2bfbb769
8 changed files with 29 additions and 4 deletions
0
migrations/.gitkeep
Normal file
0
migrations/.gitkeep
Normal file
1
migrations/20210708082032_create_tasks_table/down.sql
Normal file
1
migrations/20210708082032_create_tasks_table/down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE tasks
|
8
migrations/20210708082032_create_tasks_table/up.sql
Normal file
8
migrations/20210708082032_create_tasks_table/up.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
CREATE TABLE tasks (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
description VARCHAR NOT NULL,
|
||||
completed BOOLEAN NOT NULL DEFAULT 0
|
||||
);
|
||||
|
||||
INSERT INTO tasks (description) VALUES ("demo task");
|
||||
INSERT INTO tasks (description) VALUES ("demo task2");
|
Loading…
Add table
Add a link
Reference in a new issue