All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.harness.change.changelogs.percona-xtradb-cluster.8.0.createFunction.xml Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:pro="http://www.liquibase.org/xml/ns/pro"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
    <changeSet author="as" id="1">
        <sql>SET GLOBAL log_bin_trust_function_creators = 1;</sql>
        <rollback/>
    </changeSet>
    <changeSet author="as" id="2">
        <pro:createFunction
                encoding="UTF-8"
                replaceIfExists="true"
                functionName="test_function">CREATE FUNCTION test_function()
                                                RETURNS VARCHAR(20)
                                                BEGIN
                                                RETURN 'Hello';
                                                END
        </pro:createFunction>
        <rollback>
            <pro:dropFunction functionName="test_function"/>
        </rollback>
    </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy