Добавил создание таблицы в create-tables

This commit is contained in:
Руслан Дергачев 2023-02-08 15:55:38 +06:00
parent 8d8acb6496
commit 1a46edadec
2 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import java.time.LocalDateTime;
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class DeferredMessage {
@Id
@Column(name = "id")
@Column(name = "deferred_messages_id")
private int id;
@Column(name = "message")
private String message;

View File

@ -274,4 +274,15 @@
<addPrimaryKey tableName="merge_request_reviewer" columnNames="merge_request_id, person_id"/>
</changeSet>
<changeSet id="2023-02-08-create-table-messages" author="uPagge">
<createTable tableName="deferred_messages">
<column name="deferred_messages_id" type="int">
<constraints nullable="false" primaryKey="true"/>
</column>
<column name="message" type="varchar"/>
<column name="time" type="timestamp"/>
<column name="type" type="varchar"/>
</createTable>
</changeSet>
</databaseChangeLog>