7120-specialPrice #2213
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2213
Loading…
Reference in New Issue
No description provided.
Delete Branch "7120-specialPrice"
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?
@ -17,1 +16,3 @@
AND clientFk = vClientFk ;
WHERE itemFk = vItemFk
AND (clientFk = vClientFk OR clientFk IS NULL)
AND started <= util.VN_CURDATE()
La columna aunque está declarada NOTNULL, la mayoría de los valores es NULL
@ -28,0 +32,4 @@
SELECT *
FROM specialPrice
WHERE (clientFk = vClientFk OR clientFk IS NULL)
AND started <= vShipped
La columna aunque está declarada NOTNULL, la mayoría de los valores es NULL
si ho mires en php no eren null eren 0000-00-00 pero dbeaver ho mostra com a null. De totes formes he creat un valor per defecte.
@ -0,0 +1,7 @@
ALTER TABLE vn.specialPrice MODIFY COLUMN clientFk int(11) DEFAULT 0 NULL;
ALTER TABLE vn.specialPrice ADD started date NOT NULL;
Hay que actualizar los valores antes de hacer este cambio para que no falle?