From 5dbfdff95354c03547c217c291eff25039eca41d Mon Sep 17 00:00:00 2001 From: Holger Lindemann Date: Tue, 29 Sep 2009 12:52:58 +0200 Subject: [PATCH] Variable has_sernumber auch in der db anlegen --- sql/Pg-upgrade2/parts_has_sernumber.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sql/Pg-upgrade2/parts_has_sernumber.sql diff --git a/sql/Pg-upgrade2/parts_has_sernumber.sql b/sql/Pg-upgrade2/parts_has_sernumber.sql new file mode 100644 index 000000000..e7c670467 --- /dev/null +++ b/sql/Pg-upgrade2/parts_has_sernumber.sql @@ -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; -- 2.20.1