Move handlers into Lua Server Pages
This commit is contained in:
6
assets/.migrations/01 create node.sql
Normal file
6
assets/.migrations/01 create node.sql
Normal file
@ -0,0 +1,6 @@
|
||||
create table node (
|
||||
id INT PRIMARY KEY,
|
||||
title TEXT NOT NULL,
|
||||
body TEXT NOT NULL
|
||||
);
|
||||
insert into node(title, body) values ("First post", "This is the beginning of a beautiful relationship.");
|
9
assets/.migrations/2 create node_type.sql
Normal file
9
assets/.migrations/2 create node_type.sql
Normal file
@ -0,0 +1,9 @@
|
||||
create table node_type (
|
||||
id INT PRIMARY KEY,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
insert into node_type(id, name) values (0, "Basic post");
|
||||
|
||||
alter table node
|
||||
add column node_type_id INT NOT NULL references node_type(id) default 0;
|
Reference in New Issue
Block a user