use the right pool FK
This commit is contained in:
parent
390759cd0b
commit
733ffe4ca9
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class Pools extends Extension {
|
|||
image_id INTEGER NOT NULL,
|
||||
image_order INTEGER NOT NULL DEFAULT 0,
|
||||
FOREIGN KEY (pool_id) REFERENCES pools(id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
FOREIGN KEY (user_id) REFERENCES users(id) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
FOREIGN KEY (image_id) REFERENCES images(id) ON UPDATE CASCADE ON DELETE CASCADE
|
||||
");
|
||||
$database->create_table("pool_history", "
|
||||
id SCORE_AIPK,
|
||||
|
|
Reference in a new issue