This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/sql/beta5/structure/99-player-fk.sql

16 lines
622 B
MySQL
Raw Normal View History

2016-01-10 11:01:49 +01:00
-- LegacyWorlds Beta 5
-- PostgreSQL database scripts
--
-- beta5/structure/99-player-fk.sql
--
-- Beta 5 games:
-- Foreign keys on the player table
--
-- Copyright(C) 2004-2007, DeepClone Development
-- --------------------------------------------------------
ALTER TABLE player ADD FOREIGN KEY (alliance) REFERENCES alliance (id) ON DELETE SET NULL;
ALTER TABLE player ADD FOREIGN KEY (a_grade) REFERENCES alliance_grade (id) ON DELETE SET NULL;
ALTER TABLE player ADD FOREIGN KEY (a_vote) REFERENCES alliance_candidate (id) ON DELETE SET NULL;
ALTER TABLE player ADD FOREIGN KEY (first_planet) REFERENCES planet (id);