From f6c9088e16c4c083174dd1130ae58d213923cdef Mon Sep 17 00:00:00 2001
From: ivan <ivan>
Date: Tue, 15 Jul 2003 11:45:14 +0000
Subject: import of sql-ledger 2.0.8

---
 sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql

(limited to 'sql-ledger/sql/Pg-upgrade-2.0.0-2.0.8.sql')

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';
+--
-- 
cgit v1.2.1

