mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 23:27:57 +01:00
Add default value for new column
This commit is contained in:
parent
6c347ff826
commit
f328aedccd
@ -1,3 +1,2 @@
|
|||||||
alter table T_TAG add column TAG_COLOR_C varchar(7) not null;
|
alter table T_TAG add column TAG_COLOR_C varchar(7) default '#3a87ad' not null;
|
||||||
update T_TAG set TAG_COLOR_C = '#3a87ad';
|
|
||||||
update T_CONFIG set CFG_VALUE_C='2' where CFG_ID_C='DB_VERSION';
|
update T_CONFIG set CFG_VALUE_C='2' where CFG_ID_C='DB_VERSION';
|
||||||
|
Loading…
Reference in New Issue
Block a user