]> git.agnieray.net Git - galette.git/commitdiff
Replace possible null amounts before type migration
authorJohan Cwiklinski <johan@x-tnd.be>
Fri, 19 Apr 2024 14:14:39 +0000 (16:14 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 19 Apr 2024 14:14:39 +0000 (16:14 +0200)
galette/install/scripts/sql/upgrade-to-1.10-mysql.sql

index 7279515b6632afaa130f10fafae029a96503be1b..5a54abbaf969e65e3567eb0f719711088e4375bd 100644 (file)
@@ -63,7 +63,9 @@ CREATE TABLE galette_documents (
 
 
 -- change fields types and default values
+UPDATE galette_cotisations SET montant_cotis = 0.00 WHERE montant_cotis IS NULL;
 ALTER TABLE galette_cotisations CHANGE montant_cotis montant_cotis decimal(15,2) NOT NULL;
+UPDATE galette_transactions SET trans_amount = 0.00 WHERE trans_amount IS NULL;
 ALTER TABLE galette_transactions CHANGE trans_amount trans_amount decimal(15,2) NOT NULL;
 
 -- table for payments schedules