From f328aedccd596aad9fe2c27eceb33fdf6c70f70b Mon Sep 17 00:00:00 2001 From: jendib Date: Thu, 8 Aug 2013 10:46:15 +0200 Subject: [PATCH] Add default value for new column --- docs-core/src/main/resources/db/update/dbupdate-002-0.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs-core/src/main/resources/db/update/dbupdate-002-0.sql b/docs-core/src/main/resources/db/update/dbupdate-002-0.sql index 6dc22cba..f83c630f 100644 --- a/docs-core/src/main/resources/db/update/dbupdate-002-0.sql +++ b/docs-core/src/main/resources/db/update/dbupdate-002-0.sql @@ -1,3 +1,2 @@ -alter table T_TAG add column TAG_COLOR_C varchar(7) not null; -update T_TAG set TAG_COLOR_C = '#3a87ad'; +alter table T_TAG add column TAG_COLOR_C varchar(7) default '#3a87ad' not null; update T_CONFIG set CFG_VALUE_C='2' where CFG_ID_C='DB_VERSION';