#98 changelog edited
This commit is contained in:
parent
4213524dbd
commit
4eeb79ab80
@ -20,7 +20,7 @@ public class Deadline extends BaseEntity {
|
|||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
private Date date;
|
private Date date;
|
||||||
|
|
||||||
private String executor;
|
private Integer executor;
|
||||||
private Boolean done;
|
private Boolean done;
|
||||||
|
|
||||||
public Deadline() {
|
public Deadline() {
|
||||||
@ -31,7 +31,7 @@ public class Deadline extends BaseEntity {
|
|||||||
this.description = description;
|
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.date = deadlineDate;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.executor = executor;
|
this.executor = executor;
|
||||||
@ -42,7 +42,7 @@ public class Deadline extends BaseEntity {
|
|||||||
public Deadline(@JsonProperty("id") Integer id,
|
public Deadline(@JsonProperty("id") Integer id,
|
||||||
@JsonProperty("description") String description,
|
@JsonProperty("description") String description,
|
||||||
@JsonProperty("date") Date date,
|
@JsonProperty("date") Date date,
|
||||||
@JsonProperty("executor") String executor,
|
@JsonProperty("executor") Integer executor,
|
||||||
@JsonProperty("done") Boolean done) {
|
@JsonProperty("done") Boolean done) {
|
||||||
this.setId(id);
|
this.setId(id);
|
||||||
this.description = description;
|
this.description = description;
|
||||||
@ -67,11 +67,11 @@ public class Deadline extends BaseEntity {
|
|||||||
this.date = date;
|
this.date = date;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getExecutor() {
|
public Integer getExecutor() {
|
||||||
return executor;
|
return executor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setExecutor(String executor) {
|
public void setExecutor(Integer executor) {
|
||||||
this.executor = executor;
|
this.executor = executor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
14
src/main/resources/db/changelog-20190517_000001-schema.xml
Normal file
14
src/main/resources/db/changelog-20190517_000001-schema.xml
Normal file
@ -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_000000-schema.xml"/>
|
||||||
<include file="db/changelog-20190507_000001-schema.xml"/>
|
<include file="db/changelog-20190507_000001-schema.xml"/>
|
||||||
<include file="db/changelog-20190511_000000-schema.xml"/>
|
<include file="db/changelog-20190511_000000-schema.xml"/>
|
||||||
|
<include file="db/changelog-20190517_000001-schema.xml"/>
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
Loading…
Reference in New Issue
Block a user