Archived
1
0
Fork 0
This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
migra/migra-cli/tests/data/mysql/migrations/210218232851_create_articles/up.sql

9 lines
271 B
MySQL
Raw Normal View History

-- Your SQL goes here
CREATE TABLE articles (
2021-03-26 02:10:41 +03:00
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
);