Variable has_sernumber auch in der db anlegen
authorHolger Lindemann <hli@lx-system.de>
Tue, 29 Sep 2009 10:52:58 +0000 (12:52 +0200)
committerHolger Lindemann <hli@lx-system.de>
Tue, 29 Sep 2009 10:52:58 +0000 (12:52 +0200)
sql/Pg-upgrade2/parts_has_sernumber.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2/parts_has_sernumber.sql b/sql/Pg-upgrade2/parts_has_sernumber.sql
new file mode 100644 (file)
index 0000000..e7c6704
--- /dev/null
@@ -0,0 +1,6 @@
+-- @tag: has_sernumber
+-- @description: Artikel hat eine Seriennummer 
+-- @depends: parts
+has_sernumber      | boolean                     | default false
+ALTER TABLE parts ADD COLUMN has_sernumber boolean;
+ALTER TABLE parts ALTER COLUMN has_sernumber  SET DEFAULT false;