Optimizing imports.
Changes to db changelogs. Changes to Limits table mapping.
This commit is contained in:
parent
c0b9dcdec5
commit
9873d377d8
5 changed files with 29 additions and 17 deletions
|
|
@ -64,8 +64,8 @@
|
||||||
initiallyDeferred="false"
|
initiallyDeferred="false"
|
||||||
tableName="limits"/>
|
tableName="limits"/>
|
||||||
<sql>
|
<sql>
|
||||||
INSERT INTO limits VALUES(0, 'users', 5);
|
INSERT INTO limits VALUES(1, 'users', 5);
|
||||||
INSERT INTO limits VALUES(1, 'workers+machines', 10);
|
INSERT INTO limits VALUES(2, 'workers+machines', 10);
|
||||||
</sql>
|
</sql>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
disabled="false"
|
disabled="false"
|
||||||
initiallyDeferred="false"
|
initiallyDeferred="false"
|
||||||
tableName="email_template"
|
tableName="email_template"
|
||||||
/>
|
/>
|
||||||
<createIndex tableName="email_template" indexName="language_index">
|
<createIndex tableName="email_template" indexName="language_index">
|
||||||
<column name="language"></column>
|
<column name="language"></column>
|
||||||
</createIndex>
|
</createIndex>
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
initiallyDeferred="false"/>
|
initiallyDeferred="false"/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
<changeSet id="adding-issue_log_table" author="misha">
|
<changeSet id="adding-issue_log_table" author="misha/vova">
|
||||||
<createTable tableName="issue_log">
|
<createTable tableName="issue_log">
|
||||||
<column name="id" type="BIGINT" autoIncrement="true">
|
<column name="id" type="BIGINT" autoIncrement="true">
|
||||||
<constraints primaryKey="true" nullable="false" primaryKeyName="issue_log_pkey"/>
|
<constraints primaryKey="true" nullable="false" primaryKeyName="issue_log_pkey"/>
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
<column name="code" type="varchar(25)"/>
|
<column name="code" type="varchar(25)"/>
|
||||||
<column name="project" type="BIGINT"/>
|
<column name="project" type="BIGINT"/>
|
||||||
<column name="type" type="integer"/>
|
<column name="type" type="integer"/>
|
||||||
<column name="description" type="varchar"/>
|
<column name="description" type="varchar(512)"/>
|
||||||
<column name="priority" type="integer"/>
|
<column name="priority" type="integer"/>
|
||||||
<column name="severity" type="integer"/>
|
<column name="severity" type="integer"/>
|
||||||
<column name="created_by" type="BIGINT"/>
|
<column name="created_by" type="BIGINT"/>
|
||||||
|
|
@ -68,8 +68,9 @@
|
||||||
<column name="date_raised" type="timestamp with time zone"/>
|
<column name="date_raised" type="timestamp with time zone"/>
|
||||||
<column name="deadline" type="timestamp with time zone"/>
|
<column name="deadline" type="timestamp with time zone"/>
|
||||||
<column name="date_resolved" type="timestamp with time zone"/>
|
<column name="date_resolved" type="timestamp with time zone"/>
|
||||||
<column name="notes" type="varchar"/>
|
<column name="notes" type="varchar(256)"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
|
|
||||||
<addForeignKeyConstraint baseTableName="issue_log" baseColumnNames="project"
|
<addForeignKeyConstraint baseTableName="issue_log" baseColumnNames="project"
|
||||||
constraintName="issue_log_project_order_element_table"
|
constraintName="issue_log_project_order_element_table"
|
||||||
referencedTableName="order_element"
|
referencedTableName="order_element"
|
||||||
|
|
@ -85,17 +86,17 @@
|
||||||
disabled="false"
|
disabled="false"
|
||||||
initiallyDeferred="false"
|
initiallyDeferred="false"
|
||||||
tableName="issue_log"
|
tableName="issue_log"
|
||||||
/>
|
/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
<changeSet id="adding-risk_log_table" author="misha">
|
<changeSet id="adding-risk_log_table" author="misha/vova">
|
||||||
<createTable tableName="risk_log">
|
<createTable tableName="risk_log">
|
||||||
<column name="id" type="BIGINT" autoIncrement="true">
|
<column name="id" type="BIGINT" autoIncrement="true">
|
||||||
<constraints primaryKey="true" nullable="false" primaryKeyName="risk_log_pkey"/>
|
<constraints primaryKey="true" nullable="false" primaryKeyName="risk_log_pkey"/>
|
||||||
</column>
|
</column>
|
||||||
<column name="code" type="varchar(25)"/>
|
<column name="code" type="varchar(25)"/>
|
||||||
<column name="project" type="BIGINT"/>
|
<column name="project" type="BIGINT"/>
|
||||||
<column name="description" type="varchar"/>
|
<column name="description" type="varchar(512)"/>
|
||||||
<column name="probability" type="integer"/>
|
<column name="probability" type="integer"/>
|
||||||
<column name="impact" type="integer"/>
|
<column name="impact" type="integer"/>
|
||||||
<column name="score" type="integer"/>
|
<column name="score" type="integer"/>
|
||||||
|
|
@ -106,7 +107,7 @@
|
||||||
<column name="counter_measures" type="varchar(50)"/>
|
<column name="counter_measures" type="varchar(50)"/>
|
||||||
<column name="action_when" type="timestamp with time zone"/>
|
<column name="action_when" type="timestamp with time zone"/>
|
||||||
<column name="date_created" type="timestamp with time zone"/>
|
<column name="date_created" type="timestamp with time zone"/>
|
||||||
<column name="notes" type="varchar"/>
|
<column name="notes" type="varchar(256)"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<addForeignKeyConstraint baseTableName="risk_log" baseColumnNames="project"
|
<addForeignKeyConstraint baseTableName="risk_log" baseColumnNames="project"
|
||||||
constraintName="project_order_element_table"
|
constraintName="project_order_element_table"
|
||||||
|
|
@ -123,7 +124,7 @@
|
||||||
disabled="false"
|
disabled="false"
|
||||||
initiallyDeferred="false"
|
initiallyDeferred="false"
|
||||||
tableName="risk_log"
|
tableName="risk_log"
|
||||||
/>
|
/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
</id>
|
</id>
|
||||||
|
|
||||||
<property name="type" column="type"/>
|
<property name="type" column="type"/>
|
||||||
<property name="value" column="value" type="long"/>
|
<property name="value" column="value" type="integer"/>
|
||||||
|
|
||||||
</class>
|
</class>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ import static org.libreplan.web.I18nHelper._;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
import org.libreplan.business.common.exceptions.InstanceNotFoundException;
|
import org.libreplan.business.common.exceptions.InstanceNotFoundException;
|
||||||
|
|
@ -45,10 +44,16 @@ import org.zkoss.zk.ui.WrongValueException;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zul.*;
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
import org.zkoss.zul.Row;
|
||||||
|
import org.zkoss.zul.RowRenderer;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
|
import org.zkoss.zul.Label;
|
||||||
|
import org.zkoss.zul.Hbox;
|
||||||
|
import org.zkoss.zul.ListModelList;
|
||||||
|
import org.zkoss.zul.Listbox;
|
||||||
|
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
import javax.swing.table.TableCellEditor;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller for IssueLog CRUD actions
|
* Controller for IssueLog CRUD actions
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,13 @@ import org.zkoss.zk.ui.WrongValueException;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zul.*;
|
import org.zkoss.zul.Textbox;
|
||||||
|
import org.zkoss.zul.Hbox;
|
||||||
|
import org.zkoss.zul.Row;
|
||||||
|
import org.zkoss.zul.Cell;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
import org.zkoss.zul.Label;
|
||||||
|
import org.zkoss.zul.RowRenderer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controller for RiskLog CRUD actions
|
* Controller for RiskLog CRUD actions
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue