add mocha_build_tenant_from_template
This commit is contained in:
parent
76540c574d
commit
6f9039a851
@ -0,0 +1,21 @@
|
||||
DROP PROCEDURE IF EXISTS mocha_build_tenant_from_template;
|
||||
|
||||
CREATE PROCEDURE mocha_build_tenant_from_template
|
||||
(
|
||||
tenant_id INT,
|
||||
template_id INT
|
||||
)
|
||||
BEGIN
|
||||
|
||||
INSERT INTO mocha_tenant_references
|
||||
(
|
||||
source_tenant_id,
|
||||
target_tenant_id
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
tenant_id,
|
||||
template_id
|
||||
);
|
||||
|
||||
END
|
||||
Loading…
x
Reference in New Issue
Block a user