Browse Source

Fix item deletion

stock_management
João Andrade 2 years ago
parent
commit
826de5246b
  1. BIN
      database.mwb
  2. 14
      database.sql

BIN
database.mwb

14
database.sql

@ -1,5 +1,5 @@
-- MySQL Script generated by MySQL Workbench
-- Tue 10 Mar 2020 08:54:46 EET
-- Wed 11 Mar 2020 10:06:41 EET
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
@ -93,8 +93,8 @@ CREATE TABLE IF NOT EXISTS `permissions` (
CONSTRAINT `fk_permissions_items`
FOREIGN KEY (`itemid`)
REFERENCES `items` (`itemid`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;
@ -124,8 +124,8 @@ CREATE TABLE IF NOT EXISTS `images` (
CONSTRAINT `fk_images_items`
FOREIGN KEY (`itemid`)
REFERENCES `items` (`itemid`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;
@ -145,8 +145,8 @@ CREATE TABLE IF NOT EXISTS `stock` (
CONSTRAINT `fk_stock_items`
FOREIGN KEY (`itemid`)
REFERENCES `items` (`itemid`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB;

Loading…
Cancel
Save