summaryrefslogtreecommitdiff
path: root/sql/Pg-upgrade-2.3.5-2.3.6.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/Pg-upgrade-2.3.5-2.3.6.sql')
-rwxr-xr-xsql/Pg-upgrade-2.3.5-2.3.6.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/Pg-upgrade-2.3.5-2.3.6.sql b/sql/Pg-upgrade-2.3.5-2.3.6.sql
new file mode 100755
index 00000000..3eac490f
--- /dev/null
+++ b/sql/Pg-upgrade-2.3.5-2.3.6.sql
@@ -0,0 +1,15 @@
+--
+create table pricegroup (id int default nextval('id'), pricegroup text);
+create index pricegroup_pricegroup_key on pricegroup (pricegroup);
+create index pricegroup_id_key on pricegroup (id);
+--
+create table partscustomer (parts_id int, customer_id int, pricegroup_id int, pricebreak float4, sellprice float, validfrom date, validto date);
+--
+create table language (code varchar(6), description text);
+alter table customer add language_code varchar(6);
+alter table customer add pricegroup_id int;
+--
+alter table vendor add language_code varchar(6);
+alter table vendor add pricegroup_id int;
+--
+update defaults set version = '2.3.6';