migra/migra-cli/tests/data/sqlite_invalid/migrations/210218232851_create_articles/up.sql

9 lines
271 B
MySQL
Raw Normal View History

2021-05-23 00:30:43 +03:00
-- Your SQL goes here
CREATE TABLE articles (
id int AUTO_INCREMENT PRIMARY KEY,
title text NOT NULL CHECK (length(title) > 0),
content text NOT NULL,
created_at timestamp NOT NULL DEFAULT current_timestamp
);