1
0
EQ2Emu/database/world/starting_factions.sql

10 lines
363 B
SQL

DROP TABLE IF EXISTS starting_factions;
CREATE TABLE starting_factions (
id INTEGER PRIMARY KEY,
faction_id INTEGER NOT NULL DEFAULT 0,
starting_city INTEGER NOT NULL DEFAULT 0,
value INTEGER NOT NULL DEFAULT 0,
UNIQUE(faction_id, starting_city),
FOREIGN KEY (faction_id) REFERENCES factions(id) ON DELETE CASCADE ON UPDATE CASCADE
);