mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
14 lines
339 B
SQL
14 lines
339 B
SQL
declare
|
|
cnt number;
|
|
begin
|
|
select count(*) into cnt
|
|
from user_tab_columns
|
|
where table_name = 'VERSION_NUMBER' and column_name = 'BRANCH_NAME';
|
|
if (cnt = 0) then
|
|
execute immediate 'alter table version_number add branch_name varchar2(30)';
|
|
end if;
|
|
end;
|
|
/
|
|
|
|
update version_number set version_number=209, min_version_number=209;
|