feat: refs#5167 Update #1976
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1976
Loading…
Reference in New Issue
No description provided.
Delete Branch "5167-kk-warehouseAlias-y-warehouseJoined"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Creado de la versión de database que tenía
https://gitea.verdnatura.es/verdnatura/vn-database/pulls/1911/files#diff-fd0acab97de42225d25d8ef1cf4b3090de31c0ad
@ -21,2 +12,2 @@
ish.created,
p.pickingOrder
p.code parking,
SUM(ish.visible) as stockTotal,
Quita el AS ya de paso
@ -30,3 +23,3 @@
AND ish.itemFk = vItemFk
GROUP BY ish.id
ORDER BY (sc.id = vSectorFk) DESC, sh.priority DESC, ish.created, p.pickingOrder;
ORDER BY sh.priority DESC, ish.created, p.pickingOrder;
Esto tabulalo
@ -0,0 +1,6 @@
ALTER TABLE vn.agency CHANGE warehouseAliasFk warehouseAliasFk__ smallint(5) unsigned DEFAULT NULL NULL COMMENT 'Refs #5167 Deprecated 2024-01-23';
Respeta el formato que acoerdamos en la wiki https://wiki.verdnatura.es/index.php/Convenciones_SQL#Borrar_un_objeto
@ -0,0 +3,4 @@
ALTER TABLE vn.warehouse CHANGE aliasFk aliasFk__ smallint(5) unsigned DEFAULT NULL NULL COMMENT 'Refs #5167 Deprecated 2024-01-23';
RENAME TABLE vn.warehouseAlias TO vn.warehouseAlias__;
ALTER TABLE vn.warehouseAlias__ COMMENT='@Deprecated 2024-01-23 Refs #5167';
Encara está mal, fijat en les mayuscules i minuscules, ademés, dalt tens més
@ -0,0 +5,4 @@
CHANGE aliasFk aliasFk__ SMALLINT(5) UNSIGNED DEFAULT NULL NULL COMMENT '@Deprecated 2024-01-23 Refs #5167';
RENAME TABLE vn.warehouseAlias TO vn.warehouseAlias__;
ALTER TABLE vn.warehouseAlias__ COMMENT='@Deprecated 2024-01-23 Refs #5167';
Las mayusculas, te lo he puesto en el anterior comentario