summaryrefslogtreecommitdiff
path: root/sql/legacy/Pg-upgrade-2.0.0-2.0.8.sql
blob: ef73b1cb5bb494faa0954545b58c859434daadaf (plain)
  1. --
  2. create table partsgroup (id int default nextval('id'), partsgroup text);
  3. create index partsgroup_id_key on partsgroup (id);
  4. --
  5. alter table parts add partsgroup_id int;
  6. --
  7. alter table assembly add bom bool;
  8. update assembly set bom = '0' where assembly.id = parts.id and parts.bom = '0';
  9. update assembly set bom = '1' where assembly.id = parts.id and parts.bom = '1';
  10. --
  11. update defaults set version = '2.0.8';
  12. --