Rajout du module AdminComment + modifs pour que le commentaire (= le n° de bon de commande) figure dans la facture et dans le relevé de facture

This commit is contained in:
2020-11-19 16:22:51 +01:00
parent 66ce4ee218
commit 8efc96d81d
33 changed files with 4465 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- admin_comment
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `admin_comment`;
CREATE TABLE `admin_comment`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`admin_id` INTEGER,
`comment` TEXT,
`element_key` VARCHAR(255) NOT NULL,
`element_id` INTEGER NOT NULL,
`created_at` DATETIME,
`updated_at` DATETIME,
PRIMARY KEY (`id`),
INDEX `FI_admin_comment_admin_id` (`admin_id`),
CONSTRAINT `fk_admin_comment_admin_id`
FOREIGN KEY (`admin_id`)
REFERENCES `admin` (`id`)
ON UPDATE RESTRICT
ON DELETE SET NULL
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;