refs #5525 supplier sql table i18n

This commit is contained in:
Carlos Satorres 2023-09-14 10:04:34 +02:00
parent 4b40c8b067
commit cdc91e76f5
1 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,9 @@
ALTER TABLE `vn`.`supplierAccount` ADD COLUMN `countryFk` mediumint(8) unsigned NULL;
ALTER TABLE `vn`.`supplierAccount` ADD CONSTRAINT `supplierAccount_fk_country` FOREIGN KEY (`countryFk`) REFERENCES `country` (`id`);
ALTER TABLE `vn`.`company` MODIFY COLUMN `supplierAccountFk` mediumint(8) unsigned DEFAULT NULL NULL COMMENT 'Cuenta por defecto para ingresos desde este pais'; ALTER TABLE `vn`.`company` MODIFY COLUMN `supplierAccountFk` mediumint(8) unsigned DEFAULT NULL NULL COMMENT 'Cuenta por defecto para ingresos desde este pais';
d
CREATE TABLE `vn`.`supplierAccountI18n` (
supplierAccountFk int(10) unsigned NOT NULL,
countryFk mediumint(8) unsigned NOT NULL,
FOREIGN KEY (supplierAccountFk) REFERENCES supplierAccount(id),
FOREIGN KEY (countryFk) REFERENCES country(id)
);