Add foreign key to products
This commit is contained in:
parent
c3dc1221f7
commit
24f592f954
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ switch ($step) {
|
|||
$database->query('CREATE TABLE `products` (
|
||||
`id` int NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
`wishlist` int NOT NULL,
|
||||
`url` VARCHAR(255) NOT NULL,
|
||||
`url` VARCHAR(255) NOT NULL
|
||||
FOREIGN KEY (`wishlist`)
|
||||
REFERENCES `wishlists` (id)
|
||||
ON DELETE CASCADE
|
||||
);');
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue