Rajout d'un module pour gérer la TVA intracommunautaire

This commit is contained in:
2020-04-09 13:01:34 +02:00
parent c46b44924b
commit 49011d2df8
379 changed files with 2702 additions and 5197 deletions

View File

@@ -0,0 +1,25 @@
# 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;
-- ---------------------------------------------------------------------
-- customer_vat_number
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `customer_vat_number`;
CREATE TABLE `customer_vat_number`
(
`id` INTEGER NOT NULL,
`vat_number` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
CONSTRAINT `fk_customer_vat_number_customer_id`
FOREIGN KEY (`id`)
REFERENCES `customer` (`id`)
ON UPDATE CASCADE
ON DELETE CASCADE
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;