Add default value for new column

This commit is contained in:
jendib 2013-08-08 10:46:15 +02:00
parent 6c347ff826
commit f328aedccd

View File

@ -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';