This commit is contained in:
2021-08-24 00:11:00 +02:00
parent 57bde4ac3c
commit 0757262143
22 changed files with 716 additions and 632 deletions

View File

@@ -1,11 +0,0 @@
<?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-game-name" author="kratisto">
<addColumn tableName="game">
<column name="name" type="varchar(255)"/>
</addColumn>
</changeSet>
</databaseChangeLog>

View File

@@ -14,7 +14,7 @@
<column name="updated_at" type="timestamp">
<constraints nullable="true"/>
</column>
<column name="game_id" type="uuid" >
<column name="local_id" type="uuid" >
<constraints nullable="false"/>
</column>
</createTable>

View File

@@ -1,22 +0,0 @@
<?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-game-table" author="kratisto">
<createTable tableName="game">
<column name="id" type="uuid" defaultValueComputed="gen_random_uuid()">
<constraints nullable="false" unique="true"/>
</column>
<column name="user_id" type="uuid">
<constraints nullable="false"/>
</column>
<column name="created_at" type="timestamp" defaultValueComputed="now()">
<constraints nullable="true"/>
</column>
<column name="updated_at" type="timestamp">
<constraints nullable="true"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>

View File

@@ -53,6 +53,9 @@
<column name="sold" type="boolean">
<constraints nullable="false"/>
</column>
<column name="golden" type="boolean">
<constraints nullable="false"/>
</column>
<column name="gestation" type="boolean">
<constraints nullable="false"/>
</column>