1
0
Fork 0
Rust-Rocket-Project/migrations/20210708082032_create_tasks_table/up.sql

8 lines
250 B
MySQL
Raw Permalink Normal View History

2021-07-08 09:53:19 +02:00
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");