Skip to content

Commit

Permalink
Ending line
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Apr 25, 2024
1 parent 9aa579a commit ce0a95b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion galette/install/scripts/sql/upgrade-to-1.10-mysql.sql
Expand Up @@ -85,4 +85,5 @@ CREATE TABLE galette_payments_schedules (
);

ALTER TABLE galette_types_cotisation CHANGE cotis_extension cotis_extension TINYINT NOT NULL DEFAULT '0';
UPDATE galette_types_cotisation SET cotis_extension=-1 WHERE cotis_extension=1;
UPDATE galette_types_cotisation SET cotis_extension=-1 WHERE cotis_extension=1;

3 changes: 2 additions & 1 deletion galette/install/scripts/sql/upgrade-to-1.10-pgsql.sql
Expand Up @@ -73,4 +73,5 @@ CREATE TABLE galette_payments_schedules (

ALTER TABLE galette_types_cotisation ALTER COLUMN cotis_extension DROP DEFAULT;
ALTER TABLE galette_types_cotisation ALTER cotis_extension TYPE integer USING CASE WHEN cotis_extension=false THEN 0 ELSE -1 END;
ALTER TABLE galette_types_cotisation ALTER COLUMN cotis_extension SET DEFAULT 0;
ALTER TABLE galette_types_cotisation ALTER COLUMN cotis_extension SET DEFAULT 0;

0 comments on commit ce0a95b

Please sign in to comment.