Skip to content

Commit 38b9d80

Browse files
Fix default values for boolean columns for 24.11->25.3 upgrade
1 parent d804fa9 commit 38b9d80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/schemas/dbscripts/postgresql/targetedms-25.001-25.002.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CREATE TABLE targetedms.msProject
2424
(
2525
Id SERIAL NOT NULL ,
2626
affiliation varchar(15) DEFAULT NULL,
27-
blocked BOOLEAN NOT NULL DEFAULT 0,
27+
blocked BOOLEAN NOT NULL DEFAULT ''0'',
2828
title varchar(255),
2929
type integer,
3030
submitDate timestamp NOT NULL,
@@ -69,9 +69,9 @@ CREATE TABLE targetedms.msInstrument
6969
id SERIAL NOT NULL ,
7070
name varchar(100) NOT NULL,
7171
description varchar(255) DEFAULT NULL,
72-
active BOOLEAN NOT NULL DEFAULT 1,
72+
active BOOLEAN NOT NULL DEFAULT ''1'',
7373
color varchar(10) DEFAULT NULL,
74-
massSpec BOOLEAN DEFAULT 1,
74+
massSpec BOOLEAN DEFAULT ''1'',
7575
instrument varchar(200),
7676
7777
Container entityid NOT NULL,
@@ -101,8 +101,8 @@ CREATE TABLE targetedms.paymentMethod
101101
state char(2) DEFAULT NULL,
102102
zip varchar(11) DEFAULT NULL,
103103
country varchar(50) DEFAULT NULL,
104-
isCurrent BOOLEAN NOT NULL DEFAULT 0,
105-
federalFunding BOOLEAN NOT NULL DEFAULT 0,
104+
isCurrent BOOLEAN NOT NULL DEFAULT ''0'',
105+
federalFunding BOOLEAN NOT NULL DEFAULT ''0'',
106106
poAmount decimal(11,2) DEFAULT NULL,
107107
name varchar(500) DEFAULT NULL,
108108
worktag varchar(10) DEFAULT NULL,

0 commit comments

Comments
 (0)