mtime-Trigger für die Tabelle project hinzufügen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 16 Dec 2015 11:00:40 +0000 (12:00 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 16 Dec 2015 11:00:40 +0000 (12:00 +0100)
In der Tabelle gibt es zwar die Spalte mitime, aber keinen Trigger zum setzen.
Das holt dieser commit nach.

sql/Pg-upgrade2/project_mtime_trigger.sql [new file with mode: 0644]

diff --git a/sql/Pg-upgrade2/project_mtime_trigger.sql b/sql/Pg-upgrade2/project_mtime_trigger.sql
new file mode 100644 (file)
index 0000000..7b90764
--- /dev/null
@@ -0,0 +1,6 @@
+-- @tag: project_mtime_trigger
+-- @description: mtime-Trigger für Tabelle project hinzufügen.
+-- @depends: release_3_3_0
+-- @encoding: utf-8
+
+CREATE TRIGGER mtime_project BEFORE UPDATE ON project FOR EACH ROW EXECUTE PROCEDURE set_mtime();