fix(version): refs #6372 fix version error on deploy
This commit is contained in:
parent
0fed15434d
commit
ae078f66c1
|
@ -4,17 +4,15 @@ DELETE FROM vn2008.gastos_resumen
|
|||
FROM vn2008.gastos_resumen g
|
||||
LEFT JOIN expense e ON e.id = g.Id_Gasto COLLATE utf8mb3_general_ci
|
||||
WHERE e.id IS NULL
|
||||
)
|
||||
);
|
||||
|
||||
ALTER TABLE `vn2008`.`gastos_resumen` DROP FOREIGN KEY gastos_resumen_expense_FK;
|
||||
ALTER TABLE IF EXISTS `vn2008`.`gastos_resumen` RENAME `vn`.`expenseManual`;
|
||||
|
||||
ALTER TABLE `vn`.`expenseManual`
|
||||
CHANGE COLUMN IF EXISTS `Id_Gasto` `expenseFk` varchar(10) NOT NULL,
|
||||
CHANGE COLUMN IF EXISTS `importe` `amount` decimal(10,2) DEFAULT NULL,
|
||||
CHANGE COLUMN IF EXISTS `empresa_id` `companyFk` int(11) NOT NULL;
|
||||
|
||||
-- ALTER TABLE vn.expenseManual COLLATE=utf8mb3_general_ci;
|
||||
|
||||
ALTER TABLE vn.expenseManual MODIFY COLUMN IF EXISTS expenseFk varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL;
|
||||
|
||||
ALTER TABLE vn.expenseManual DROP PRIMARY KEY;
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
DROP TRIGGER IF EXISTS `vn2008`.`movement_label_afterUpdate`;
|
||||
|
||||
ALTER TABLE vn2008.movement_label DROP FOREIGN KEY movement_label_ibfk_1;
|
||||
|
||||
DROP VIEW IF EXISTS `vn`.`saleLabel`;
|
||||
|
||||
ALTER TABLE IF EXISTS `vn2008`.`movement_label` RENAME `vn`.`saleLabel`;
|
||||
|
||||
ALTER TABLE IF EXISTS `vn`.`saleLabel`
|
||||
CHANGE COLUMN IF EXISTS `Id_movimiento` `saleFk` int(11) NOT NULL;
|
||||
|
||||
ALTER TABLE vn.saleLabel ADD CONSTRAINT saleLabel_sale_FK FOREIGN KEY (saleFk) REFERENCES vn.sale(id) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
|
|
Loading…
Reference in New Issue