#98 changelog edited

pull/201/head
Васин Антон 5 years ago
parent 4213524dbd
commit 4eeb79ab80

@ -20,7 +20,7 @@ public class Deadline extends BaseEntity {
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date date;
private String executor;
private Integer executor;
private Boolean done;
public Deadline() {
@ -31,7 +31,7 @@ public class Deadline extends BaseEntity {
this.description = description;
}
public Deadline(Date deadlineDate, String description, String executor, Boolean done) {
public Deadline(Date deadlineDate, String description, Integer executor, Boolean done) {
this.date = deadlineDate;
this.description = description;
this.executor = executor;
@ -42,7 +42,7 @@ public class Deadline extends BaseEntity {
public Deadline(@JsonProperty("id") Integer id,
@JsonProperty("description") String description,
@JsonProperty("date") Date date,
@JsonProperty("executor") String executor,
@JsonProperty("executor") Integer executor,
@JsonProperty("done") Boolean done) {
this.setId(id);
this.description = description;
@ -67,11 +67,11 @@ public class Deadline extends BaseEntity {
this.date = date;
}
public String getExecutor() {
public Integer getExecutor() {
return executor;
}
public void setExecutor(String executor) {
public void setExecutor(Integer executor) {
this.executor = executor;
}

@ -0,0 +1,14 @@
<?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="anton" id="20190517_000001-1">
<modifyDataType tableName="deadline"
columnName="executor"
newDataType="integer"
schemaName="public"/>
<addForeignKeyConstraint baseTableName="deadline" baseColumnNames="executor"
constraintName="fk_deadline_executor" referencedTableName="users"
referencedColumnNames="id"/>
</changeSet>
</databaseChangeLog>

@ -44,4 +44,5 @@
<include file="db/changelog-20190507_000000-schema.xml"/>
<include file="db/changelog-20190507_000001-schema.xml"/>
<include file="db/changelog-20190511_000000-schema.xml"/>
<include file="db/changelog-20190517_000001-schema.xml"/>
</databaseChangeLog>
Loading…
Cancel
Save