salix/db/versions/10835-brownCarnation/12-account_conciliacion.sql

15 lines
921 B
MySQL
Raw Permalink Normal View History

2024-02-15 10:47:33 +00:00
DROP TRIGGER IF EXISTS vn2008.account_conciliacion_beforeInsert;
ALTER TABLE IF EXISTS `vn2008`.`account_conciliacion` RENAME `vn`.`accountReconciliation`;
ALTER TABLE IF EXISTS `vn`.`accountReconciliation`
CHANGE COLUMN IF EXISTS `idaccount_conciliacion` `id` int(11) NOT NULL AUTO_INCREMENT,
CHANGE COLUMN IF EXISTS `Id_Proveedores_account` `supplierAccountFk` mediumint(8) unsigned NOT NULL,
CHANGE COLUMN IF EXISTS `Fechaoperacion` `operationDated` datetime NOT NULL,
CHANGE COLUMN IF EXISTS `FechaValor` `valueDated` datetime NOT NULL,
CHANGE COLUMN IF EXISTS `importe` `amount` double NOT NULL,
CHANGE COLUMN IF EXISTS `Concepto` `concept` varchar(255) DEFAULT NULL,
CHANGE COLUMN IF EXISTS `DebeHaber` `debitCredit` smallint(6) NOT NULL,
CHANGE COLUMN IF EXISTS `id_calculated` `calculatedCode` varchar(255) DEFAULT NULL,
2024-02-02 22:07:29 +00:00
CHANGE COLUMN IF EXISTS `odbc_date` `created` timestamp NULL DEFAULT current_timestamp();