task9462 #18
|
@ -40,6 +40,12 @@ public class DbDatasource implements Serializable {
|
|||
@Column(name = "constraints")
|
||||
private SelectionCriteria constraints;
|
||||
|
||||
@Column(name = "deposit")
|
||||
private Boolean deposit;
|
||||
|
||||
@Column(name = "message")
|
||||
private String message;
|
||||
|
||||
public DbDatasource() {}
|
||||
|
||||
public DbDatasource(final String community, final String dsId, final String dsName, final String dsOfficialName, final SelectionCriteria constraints) {
|
||||
|
@ -98,4 +104,20 @@ public class DbDatasource implements Serializable {
|
|||
this.constraints = constraints;
|
||||
}
|
||||
|
||||
public Boolean getDeposit() {
|
||||
return deposit;
|
||||
}
|
||||
|
||||
public void setDeposit(final Boolean deposit) {
|
||||
this.deposit = deposit;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(final String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -44,8 +44,10 @@ CREATE TABLE community_datasources (
|
|||
ds_id text NOT NULL,
|
||||
ds_name text NOT NULL,
|
||||
ds_officialname text NOT NULL,
|
||||
enabled boolean NOT NULL DEFAULT true;
|
||||
enabled boolean NOT NULL DEFAULT true
|
||||
constraints jsonb,
|
||||
deposit boolean NOT NULL DEFAULT false,
|
||||
message text,
|
||||
PRIMARY KEY (community, ds_id)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue