diff options
author | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-09-01 01:16:38 +0000 |
---|---|---|
committer | christopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-09-01 01:16:38 +0000 |
commit | ac5b087ea2d9ba7428d367aaeb288534158fee9a (patch) | |
tree | 2dbe0bdea0b653a215ba9ddfdf627cb57855050d /sql/Oracle-upgrade-2.0.0-2.0.8.sql |
Initial Import
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/ledger-smb@1 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'sql/Oracle-upgrade-2.0.0-2.0.8.sql')
-rwxr-xr-x | sql/Oracle-upgrade-2.0.0-2.0.8.sql | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sql/Oracle-upgrade-2.0.0-2.0.8.sql b/sql/Oracle-upgrade-2.0.0-2.0.8.sql new file mode 100755 index 00000000..eb65e9ca --- /dev/null +++ b/sql/Oracle-upgrade-2.0.0-2.0.8.sql @@ -0,0 +1,19 @@ +-- +create table partsgroup (id integer, partsgroup varchar2(100)); +create index partsgroup_id_key on partsgroup (id); +-- +alter table parts add (partsgroup_id integer); +-- +alter table assembly add (bom char(1)); +update assembly set bom = '0' where assembly.id = parts.id and parts.bom = '0'; +update assembly set bom = '1' where assembly.id = parts.id and parts.bom = '1'; +-- +CREATE OR REPLACE TRIGGER partsgroupid BEFORE INSERT ON partsgroup FOR EACH ROW +BEGIN + SELECT id.nextval + INTO :new.id +FROM DUAL;-- +END;; +-- +update defaults set version = '2.0.8'; +-- |