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(
2020
2121CREATE TABLE appears_in (
2222 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 )),
2424 PRIMARY KEY (hero_id, episode)
2525);
2626
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ CREATE TABLE heros(
2020
2121CREATE TABLE appears_in (
2222 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 )),
2424 PRIMARY KEY (hero_id, episode)
2525);
2626
You can’t perform that action at this time.
0 commit comments