91a0a44e90
Signed-off by: Gergely POLONKAI <polesz@w00d5t0ck.info>
15 lines
366 B
SQL
15 lines
366 B
SQL
-- Okay, so you update this file. But if you create a table, don't forget to
|
|
-- update drop.sql, either!
|
|
|
|
CREATE TABLE planets (
|
|
id integer NOT NULL PRIMARY KEY,
|
|
name varchar(40) NOT NULL UNIQUE
|
|
);
|
|
|
|
CREATE TABLE planet_planes (
|
|
planet_id integer NOT NULL REFERENCES planets(id),
|
|
plane_id integer NOT NULL REFERENCES planes(id),
|
|
UNIQUE (planet_id, plane_id)
|
|
);
|
|
|