Skip to content

Commit

Permalink
Compatibilité Dolibarr v18: valeur par défaut et "on update" pour le …
Browse files Browse the repository at this point in the history
…champs llx_pickup_pickupline.tms.
  • Loading branch information
JohnXLivingston committed Feb 15, 2024
1 parent 62ff165 commit 5fddfe2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# DolibarrPickup

## 2.5.1

* Compatibilité Dolibarr v18: valeur par défaut et "on update" pour le champs llx_pickup_pickupline.tms.

## 2.5.0

**Important** : Cette mise à jour contient de nouveaux paramètres. Pour les initialiser, il faut désactiver puis réactiver le module. Si vous ne le faites pas, l'application pourrait être buguée (utilisation de mauvaises unités de mesure, avec des résultats imprédictibles).
Expand Down
2 changes: 1 addition & 1 deletion sql/llx_pickup_pickupline.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE TABLE llx_pickup_pickupline(
deee_type varchar(255) DEFAULT NULL,
qty integer DEFAULT 1 NOT NULL,
-- DEPRECATED 2023-03-13: batch varchar(128) DEFAULT NULL,
tms timestamp NOT NULL,
tms timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer NOT NULL,
fk_user_modif integer,
position integer NOT NULL,
Expand Down
16 changes: 16 additions & 0 deletions sql/update_2.5.1.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Copyright (C) 2023 John Livingston <[email protected]>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Affero General Public License for more details.
--
-- You should have received a copy of the GNU Affero General Public License
-- along with this program. If not, see https://www.gnu.org/licenses/.

ALTER TABLE llx_pickup_pickupline MODIFY tms timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

0 comments on commit 5fddfe2

Please sign in to comment.