We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa15b93 commit 733645cCopy full SHA for 733645c
migrations/2023-05-26-071306_create_character/down.sql
@@ -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;
migrations/2023-05-26-071306_create_character/up.sql
@@ -0,0 +1,23 @@
+-- Your SQL goes here
+CREATE TABLE characters (
+ id integer PRIMARY KEY,
+ 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
22
+ name VARCHAR
23
0 commit comments