x
1
-- File: trig_i_i_syst_instances.eex.sql
2
-- Location: musebms/database/components/system/mscmp_syst_instance/ms_syst/api_views/syst_instances/trig_i_i_syst_instances.eex.sql
3
-- Project: Muse Systems Business Management System
4
--
5
-- Copyright © Lima Buttgereit Holdings LLC d/b/a Muse Systems
6
-- This file may include content copyrighted and licensed from third parties.
7
--
8
-- See the LICENSE file in the project root for license terms and conditions.
9
-- See the NOTICE file in the project root for copyright ownership information.
10
--
11
-- muse.information@musesystems.com :: https://muse.systems
12
13
BEGIN
14
15
INSERT INTO ms_syst_data.syst_instances
16
( internal_name
17
, display_name
18
, application_id
19
, instance_type_id
20
, instance_state_id
21
, owner_id
22
, owning_instance_id
23
, dbserver_name
24
, instance_code
25
, instance_options )
26
VALUES
27
( new.internal_name
28
, new.display_name
29
, new.application_id
30
, new.instance_type_id
31
, new.instance_state_id
32
, new.owner_id
33
, new.owning_instance_id
34
, new.dbserver_name
35
, new.instance_code
36
, new.instance_options )
37
RETURNING * INTO new;
38
39
RETURN new;
40
41
END;