diff options
Diffstat (limited to 'sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql')
-rw-r--r-- | sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql b/sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql new file mode 100644 index 000000000..ef73b1cb5 --- /dev/null +++ b/sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql @@ -0,0 +1,12 @@ +-- +create table partsgroup (id int default nextval('id'), partsgroup text); +create index partsgroup_id_key on partsgroup (id); +-- +alter table parts add partsgroup_id int; +-- +alter table assembly add bom bool; +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'; +-- +update defaults set version = '2.0.8'; +-- |