- <changeSet author="test" id="stored-procedure-1" runAlways="true">
- <sqlFile
- endDelimiter=";"
- relativeToChangelogFile="true"
- splitStatements="true"
- path="stored-procedures.sql"/>
- </changeSet>
The stored-procedures.sql has the SQL as
- DELIMITER /
- CREATE OR REPLACE PROCEDURE PRE_CUSTOM_REFERENCE_LOAD(snapshot_date DATE, table_name VARCHAR(100), batch_id INT) AS
- BEGIN
- Do something;
- END /
- DELIMITER ;