File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
wundergraph_example/migrations
pg/2018-01-24-131925_setup
sqlite/2018-01-24-131925_setup Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ CREATE TABLE heros(
20
20
21
21
CREATE TABLE appears_in (
22
22
hero_id INTEGER NOT NULL REFERENCES heros(id) ON DELETE CASCADE ON UPDATE RESTRICT,
23
- episode INTEGER NOT NULL CHECK (episode IN (1 ,2 ,3 )),
23
+ episode SMALLINT NOT NULL CHECK (episode IN (1 ,2 ,3 )),
24
24
PRIMARY KEY (hero_id, episode)
25
25
);
26
26
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ CREATE TABLE heros(
20
20
21
21
CREATE TABLE appears_in (
22
22
hero_id INTEGER NOT NULL REFERENCES heros(id) ON DELETE CASCADE ON UPDATE RESTRICT,
23
- episode INTEGER NOT NULL CHECK (episode IN (1 ,2 ,3 )),
23
+ episode SMALLINT NOT NULL CHECK (episode IN (1 ,2 ,3 )),
24
24
PRIMARY KEY (hero_id, episode)
25
25
);
26
26
You can’t perform that action at this time.
0 commit comments