Skip to content

Commit 733645c

Browse files
committed
add migrations
1 parent fa15b93 commit 733645c

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- This file should undo anything in `up.sql`
2+
DROP TABLE characters;
3+
DROP TABLE faiths;
4+
DROP TABLE houses;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
-- Your SQL goes here
2+
CREATE TABLE characters (
3+
id integer PRIMARY KEY,
4+
first_name VARCHAR,
5+
diplomacy integer,
6+
martial integer,
7+
stewardship integer,
8+
intrigue integer,
9+
learning integer,
10+
prowess integer,
11+
faith_id INTEGER REFERENCES faiths(id),
12+
house_id INTEGER REFERENCES houses(id)
13+
);
14+
15+
CREATE TABLE faiths (
16+
id INTEGER PRIMARY KEY,
17+
tag VARCHAR
18+
);
19+
20+
CREATE TABLE houses (
21+
id INTEGER PRIMARY KEY,
22+
name VARCHAR
23+
);

0 commit comments

Comments
 (0)