Changes to schema

merge-requests/7/head
Chatura Dilan 8 years ago
parent 23ea67deb1
commit c89491b93e

@ -32,6 +32,8 @@ public class Application {
private String uuid; private String uuid;
private String identifier;
private String name; private String name;
private String shortDescription; private String shortDescription;
@ -62,8 +64,6 @@ public class Application {
private Date modifiedAt; private Date modifiedAt;
private boolean published;
private LifecycleState lifecycleState; private LifecycleState lifecycleState;
private Date lifecycleStateModifiedAt; private Date lifecycleStateModifiedAt;
@ -93,6 +93,14 @@ public class Application {
this.uuid = uuid; this.uuid = uuid;
} }
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
public String getName() { public String getName() {
return name; return name;
} }
@ -213,14 +221,6 @@ public class Application {
this.modifiedAt = modifiedAt; this.modifiedAt = modifiedAt;
} }
public boolean isPublished() {
return published;
}
public void setPublished(boolean published) {
this.published = published;
}
public LifecycleState getLifecycleState() { public LifecycleState getLifecycleState() {
return lifecycleState; return lifecycleState;
} }

@ -49,7 +49,7 @@ public class ApplicationRelease {
private Map<String, String> properties; private Map<String, String> properties;
private boolean published; private boolean isDefault;
public int getId() { public int getId() {
return id; return id;
@ -139,11 +139,11 @@ public class ApplicationRelease {
this.properties = properties; this.properties = properties;
} }
public boolean isPublished() { public boolean isDefault() {
return published; return isDefault;
} }
public void setPublished(boolean published) { public void setDefault(boolean aDefault) {
this.published = published; isDefault = aDefault;
} }
} }

@ -142,7 +142,7 @@ CREATE TABLE IF NOT EXISTS `APPM_APPLICATION_RELEASE` (
`RELEASE_DETAILS` TEXT NULL, `RELEASE_DETAILS` TEXT NULL,
`CREATED_AT` DATETIME NOT NULL, `CREATED_AT` DATETIME NOT NULL,
`APPM_APPLICATION_ID` INT NOT NULL, `APPM_APPLICATION_ID` INT NOT NULL,
`PUBLISHED` TINYINT(1) NULL, `IS_DEFAULT` TINYINT(1) NULL,
PRIMARY KEY (`ID`, `APPM_APPLICATION_ID`), PRIMARY KEY (`ID`, `APPM_APPLICATION_ID`),
INDEX `FK_APPLICATION_VERSION_APPLICATION` (`APPM_APPLICATION_ID` ASC), INDEX `FK_APPLICATION_VERSION_APPLICATION` (`APPM_APPLICATION_ID` ASC),
CONSTRAINT `FK_APPLICATION_VERSION_APPLICATION` CONSTRAINT `FK_APPLICATION_VERSION_APPLICATION`

Loading…
Cancel
Save