Commit b5ab49f3 by Trevor Austin

Make migrations runnable with 'mysql < *.sql'

parent 4fe42651
-- sudo mysql -u root weblog < 20200224T184700-create_tables.sql
-- sudo mysql -u root < 20200224T184700-create_tables.sql
use weblog;
create table posts (
id INT AUTO_INCREMENT PRIMARY KEY,
......
-- sudo mysql -u root weblog < 20200224T184900-insert_posts_and_comments.sql
-- sudo mysql -u root < 20200224T184900-insert_posts_and_comments.sql
-- text from http://shakespeare.mit.edu/tempest/full.html
use weblog;
insert into posts (id, slug, title, body) values (
1,
"act_1_scene_1",
......
......@@ -13,6 +13,8 @@
-- FOREIGN KEY(post_id) REFERENCES posts(id)
-- );
use weblog;
create table posts_and_comments (
id INT AUTO_INCREMENT PRIMARY KEY,
body TEXT,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment