feat: update liquibase script

This commit is contained in:
Jeffrey Duroyon
2020-05-11 00:44:22 +02:00
parent bda5b1b97b
commit 3ab5c7916f
12 changed files with 182 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
<changeSet id="add-cage-table" author="kratisto">
<createTable tableName="cage">
<column name="id" type="uuid" defaultValueComputed="gen_random_uuid()">
<constraints nullable="false" unique="true"/>
</column>
<column name="created_at" type="timestamp" defaultValueComputed="now()">
<constraints nullable="true"/>
</column>
<column name="updated_at" type="timestamp">
<constraints nullable="true"/>
</column>
<column name="game_id" type="uuid" >
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>