git-extractor/src/main/resources/db/changelog-20210329_120000-schema.xml

38 lines
1.7 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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<changeSet author="orion" id="20210329-120000-1">
<addColumn tableName="repository">
<column name="version" type="integer"/>
</addColumn>
<addColumn tableName="branch">
<column name="version" type="integer"/>
</addColumn>
<addColumn tableName="commit">
<column name="version" type="integer"/>
</addColumn>
<addColumn tableName="author">
<column name="version" type="integer"/>
</addColumn>
</changeSet>
<changeSet author="orion" id="20210329-120000-2">
<addColumn tableName="file_change">
<column name="version" type="integer"/>
</addColumn>
<addColumn tableName="line_change">
<column name="version" type="integer"/>
</addColumn>
</changeSet>
<changeSet author="orion" id="20210329-120000-3" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
<createTable tableName="hibernate_sequences">
<column name="sequence_name" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="sequence_next_hi_value" type="BIGINT"/>
<column name="next_val" type="bigint"/>
</createTable>
<addPrimaryKey columnNames="sequence_name" constraintName="hibernate_sequences_pkey"
tableName="hibernate_sequences"/>
</changeSet>
</databaseChangeLog>