Rocket/examples/databases/db/sqlx/migrations/20210331024424_create-posts...

7 lines
162 B
MySQL
Raw Normal View History

CREATE TABLE posts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
published BOOLEAN NOT NULL DEFAULT 0
);