salix/db/versions/10835-brownCarnation/01-Bancos_poliza.sql

17 lines
873 B
MySQL
Raw Normal View History

-- Bancos_poliza
DROP VIEW IF EXISTS vn.bankPolicy;
ALTER TABLE IF EXISTS `vn2008`.`Bancos_poliza` RENAME `vn`.`bankPolicy`;
ALTER TABLE IF EXISTS `vn`.`bankPolicy`
CHANGE COLUMN IF EXISTS `poliza_id` `id` int(11) NOT NULL AUTO_INCREMENT,
CHANGE COLUMN IF EXISTS `referencia` `ref` varchar(45) DEFAULT NULL,
CHANGE COLUMN IF EXISTS `importe` `amount` double NOT NULL,
CHANGE COLUMN IF EXISTS `com_dispuesto` `committedFee` double DEFAULT NULL,
CHANGE COLUMN IF EXISTS `com_no_dispuesto` `nonCommittedFee` double DEFAULT NULL,
CHANGE COLUMN IF EXISTS `com_anual` `annualFee` double DEFAULT NULL,
CHANGE COLUMN IF EXISTS `apertura` `started` date NOT NULL,
CHANGE COLUMN IF EXISTS `cierre` `ended` date DEFAULT NULL,
CHANGE COLUMN IF EXISTS `Id_Banco` `accountingFk` int(11) NOT NULL,
CHANGE COLUMN IF EXISTS `empresa_id` `companyFk` int(10) unsigned NOT NULL DEFAULT 442;