1 -- @tag: custom_variables
2 -- @description: Benutzerdefinierte Variablen für beliebige Module. Hier nur für Kunden- und Lieferantenstammdaten implementiert.
3 -- @depends: release_2_4_3
4 CREATE SEQUENCE custom_variable_configs_id;
5 CREATE TABLE custom_variable_configs (
6 id integer NOT NULL DEFAULT nextval('custom_variable_configs_id'),
15 included_by_default boolean,
18 itime timestamp DEFAULT now(),
24 CREATE TRIGGER mtime_custom_variable_configs
25 BEFORE UPDATE ON custom_variable_configs
27 EXECUTE PROCEDURE set_mtime();
29 CREATE SEQUENCE custom_variables_id;
30 CREATE TABLE custom_variables (
31 id integer NOT NULL DEFAULT nextval('custom_variables_id'),
32 config_id integer NOT NULL,
33 trans_id integer NOT NULL,
36 timestamp_value timestamp,
38 number_value numeric(25,5),
40 itime timestamp DEFAULT now(),
44 FOREIGN KEY (config_id) REFERENCES custom_variable_configs (id)
47 CREATE TRIGGER mtime_custom_variables
48 BEFORE UPDATE ON custom_variables
50 EXECUTE PROCEDURE set_mtime();