Не могу понять почему не создается таблица, не бывало ли у вас аналогичная проблема?
код:
@Getter
@Setter
@Accessors(chain = true)
@Entity
@Table(name = "skk_blacklist")
public class SkkBlacklistEntity {
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid2")
private String id;
private String taxpayerCode;
private boolean blocked;
private String name;
private String phoneNumber;
private String blockedBy;
@CreationTimestamp
private Timestamp createdAt;
@UpdateTimestamp
private Timestamp updatedAt;
}
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
logicalFilePath="20231023172812.skk_blacklist"
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 id="20231023172812.skk_blacklist" author="dev_user">
<createTable tableName="skk_blacklist">
<column name="id" type="varchar(50)">
<constraints primaryKey="true" primaryKeyName="pk_skk_blacklist"/>
</column>
<column name="taxpayer_code" type="varchar(25)">
<constraints nullable="false"/>
</column>
<column name="blocked" type="boolean"/>
<column name="name" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="phone_number" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="blocked_by" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="created_at" type="date">
<constraints nullable="false"/>
</column>
<column name="updated_at" type="date">
<constraints nullable="false"/>
</column>
</createTable>
<createIndex indexName="i01_skk_blacklist" unique="true" tableName="skk_blacklist">
<column name="taxpayerCode"/>
</createIndex>
</changeSet>
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<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">
<include file="changes/20231023172812.skk_blacklist.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>