mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Only allow a single owner for a zone
This commit is contained in:
parent
adef2938d6
commit
aae107b238
1 changed files with 1 additions and 1 deletions
|
@ -10,5 +10,5 @@ CREATE TABLE zones (
|
|||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
zone VARCHAR NOT NULL,
|
||||
owner INTEGER NOT NULL,
|
||||
UNIQUE(zone,owner),
|
||||
UNIQUE(zone),
|
||||
FOREIGN KEY(owner) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE );
|
||||
|
|
Loading…
Add table
Reference in a new issue