mirror of
https://github.com/Sheldan/gw2-tools.git
synced 2026-01-03 07:31:46 +00:00
34 lines
2.1 KiB
XML
34 lines
2.1 KiB
XML
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.25.xsd">
|
|
|
|
<changeSet author="Sheldan" id="submission_template-table">
|
|
<createTable tableName="submission_template">
|
|
<column autoIncrement="true" name="id" type="BIGINT">
|
|
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_submission_template"/>
|
|
</column>
|
|
<column name="item_id" type="INTEGER">
|
|
<constraints nullable="false" />
|
|
</column>
|
|
<column name="description" type="VARCHAR(1024)"/>
|
|
<column name="template_text" type="VARCHAR(2048)"/>
|
|
<column name="name" type="VARCHAR(128)"/>
|
|
<column name="created" type="TIMESTAMP WITHOUT TIME ZONE">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="updated" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
|
</createTable>
|
|
<addForeignKeyConstraint baseColumnNames="item_id" baseTableName="submission_template" constraintName="fk_submission_template_item" deferrable="false"
|
|
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="id"
|
|
referencedTableName="item" validate="true"/>
|
|
<sql>
|
|
DROP TRIGGER IF EXISTS submission_template_update_trigger ON submission_template;
|
|
CREATE TRIGGER submission_template_update_trigger BEFORE UPDATE ON submission_template FOR EACH ROW EXECUTE PROCEDURE update_trigger_procedure();
|
|
</sql>
|
|
<sql>
|
|
DROP TRIGGER IF EXISTS submission_template_insert_trigger ON submission_template;
|
|
CREATE TRIGGER submission_template_insert_trigger BEFORE INSERT ON submission_template FOR EACH ROW EXECUTE PROCEDURE insert_trigger_procedure();
|
|
</sql>
|
|
</changeSet>
|
|
</databaseChangeLog> |