+++ /dev/null
-
-CREATE TABLE hermes_timeslices (
- timeslice_id INT NOT NULL,
- clientjob_id VARCHAR(255) NOT NULL,
- employee_id VARCHAR(255) NOT NULL,
- jobtype_id INT NOT NULL,
- timeslice_hours NUMERIC(10, 2) NOT NULL,
- timeslice_rate NUMERIC(10, 2),
- timeslice_isbillable SMALLINT DEFAULT 0 NOT NULL,
- timeslice_date INT NOT NULL,
- timeslice_description VARCHAR(MAX) NOT NULL,
- timeslice_note VARCHAR(MAX),
- timeslice_submitted SMALLINT DEFAULT 0 NOT NULL,
- timeslice_exported SMALLINT DEFAULT 0 NOT NULL,
- costobject_id VARCHAR(255),
---
- PRIMARY KEY (timeslice_id)
-);
-
-CREATE TABLE hermes_jobtypes (
- jobtype_id INT NOT NULL,
- jobtype_name VARCHAR(255),
- jobtype_enabled SMALLINT DEFAULT 1 NOT NULL,
- jobtype_rate NUMERIC(10, 2),
- jobtype_billable SMALLINT DEFAULT 0 NOT NULL,
---
- PRIMARY KEY (jobtype_id)
-);
-
-CREATE TABLE hermes_clientjobs (
- clientjob_id VARCHAR(255) NOT NULL,
- clientjob_enterdescription SMALLINT DEFAULT 1 NOT NULL,
- clientjob_exportid VARCHAR(255),
---
- PRIMARY KEY (clientjob_id)
-);
-
-CREATE TABLE hermes_deliverables (
- deliverable_id INT NOT NULL,
- client_id VARCHAR(250) NOT NULL,
- deliverable_name VARCHAR(250) NOT NULL,
- deliverable_parent INT,
- deliverable_estimate NUMERIC(10, 2),
- deliverable_active SMALLINT DEFAULT 1 NOT NULL,
- deliverable_description VARCHAR(MAX),
---
- PRIMARY KEY (deliverable_id)
-);
-
-CREATE INDEX hermes_deliverables_client ON hermes_deliverables (client_id, deliverable_name);
+++ /dev/null
-
-CREATE TABLE hermes_timeslices (
- timeslice_id NUMBER(16) NOT NULL,
- clientjob_id VARCHAR2(255) NOT NULL,
- employee_id VARCHAR2(255) NOT NULL,
- jobtype_id NUMBER(16) NOT NULL,
- timeslice_hours NUMBER(10, 2) NOT NULL,
- timeslice_rate NUMBER(10, 2),
- timeslice_isbillable NUMBER(1) DEFAULT 0 NOT NULL,
- timeslice_date NUMBER(16) NOT NULL,
- timeslice_description CLOB NOT NULL,
- timeslice_note CLOB,
- timeslice_submitted NUMBER(1) DEFAULT 0 NOT NULL,
- timeslice_exported NUMBER(1) DEFAULT 0 NOT NULL,
- costobject_id VARCHAR2(255),
---
- PRIMARY KEY (timeslice_id)
-);
-
-CREATE TABLE hermes_jobtypes (
- jobtype_id NUMBER(16) NOT NULL,
- jobtype_name VARCHAR2(255),
- jobtype_enabled NUMBER(1) DEFAULT 1 NOT NULL,
- jobtype_rate NUMBER(10, 2),
- jobtype_billable NUMBER(1) DEFAULT 0 NOT NULL,
---
- PRIMARY KEY (jobtype_id)
-);
-
-CREATE TABLE hermes_clientjobs (
- clientjob_id VARCHAR2(255) NOT NULL,
- clientjob_enterdescription NUMBER(1) DEFAULT 1 NOT NULL,
- clientjob_exportid VARCHAR2(255),
---
- PRIMARY KEY (clientjob_id)
-);
-
-CREATE TABLE hermes_deliverables (
- deliverable_id NUMBER(16) NOT NULL,
- client_id VARCHAR2(250) NOT NULL,
- deliverable_name VARCHAR2(250) NOT NULL,
- deliverable_parent NUMBER(16),
- deliverable_estimate NUMBER(10, 2),
- deliverable_active NUMBER(1) DEFAULT 1 NOT NULL,
- deliverable_description CLOB,
---
- PRIMARY KEY (deliverable_id)
-);
-
-CREATE INDEX hermes_deliverables_client ON hermes_deliverables (client_id, deliverable_name);
+++ /dev/null
-
-CREATE TABLE hermes_timeslices (
- timeslice_id INT NOT NULL,
- clientjob_id VARCHAR(255) NOT NULL,
- employee_id VARCHAR(255) NOT NULL,
- jobtype_id INT NOT NULL,
- timeslice_hours NUMERIC(10, 2) NOT NULL,
- timeslice_rate NUMERIC(10, 2),
- timeslice_isbillable SMALLINT DEFAULT 0 NOT NULL,
- timeslice_date INT NOT NULL,
- timeslice_description TEXT NOT NULL,
- timeslice_note TEXT,
- timeslice_submitted SMALLINT DEFAULT 0 NOT NULL,
- timeslice_exported SMALLINT DEFAULT 0 NOT NULL,
- costobject_id VARCHAR(255),
---
- PRIMARY KEY (timeslice_id)
-);
-
-CREATE TABLE hermes_jobtypes (
- jobtype_id INT NOT NULL,
- jobtype_name VARCHAR(255),
- jobtype_enabled SMALLINT DEFAULT 1 NOT NULL,
- jobtype_rate NUMERIC(10, 2),
- jobtype_billable SMALLINT DEFAULT 0 NOT NULL,
---
- PRIMARY KEY (jobtype_id)
-);
-
-CREATE TABLE hermes_clientjobs (
- clientjob_id VARCHAR(255) NOT NULL,
- clientjob_enterdescription SMALLINT DEFAULT 1 NOT NULL,
- clientjob_exportid VARCHAR(255),
---
- PRIMARY KEY (clientjob_id)
-);
-
-CREATE TABLE hermes_deliverables (
- deliverable_id INT NOT NULL,
- client_id VARCHAR(255) NOT NULL,
- deliverable_name VARCHAR(255) NOT NULL,
- deliverable_parent INT,
- deliverable_estimate NUMERIC(10, 2),
- deliverable_active SMALLINT DEFAULT 1 NOT NULL,
- deliverable_description TEXT,
---
- PRIMARY KEY (deliverable_id)
-);
-
-CREATE INDEX hermes_deliverables_client ON hermes_deliverables (client_id);
-CREATE INDEX hermes_deliverables_active ON hermes_deliverables (deliverable_active);
+++ /dev/null
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<database>
-
- <name><variable>name</variable></name>
- <create>false</create>
- <overwrite>false</overwrite>
-
- <table>
-
- <name>hermes_clientjobs</name>
-
- <declaration>
-
- <field>
- <name>clientjob_id</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>clientjob_enterdescription</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>clientjob_exportid</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>255</length>
- </field>
-
- <index>
- <name>hermes_clientjobs_pKey</name>
- <primary>true</primary>
- <field>
- <name>clientjob_id</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>hermes_deliverables</name>
-
- <declaration>
-
- <field>
- <name>deliverable_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>client_id</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>deliverable_name</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>deliverable_parent</name>
- <type>integer</type>
- <default></default>
- <notnull>false</notnull>
- </field>
-
- <field>
- <name>deliverable_estimate</name>
- <type>decimal</type>
- <default></default>
- <notnull>false</notnull>
- <length>10,2</length>
- </field>
-
- <field>
- <name>deliverable_active</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>deliverable_description</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- </field>
-
- <index>
- <name>hermes_deliverables_client</name>
- <field>
- <name>client_id</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- <index>
- <name>hermes_deliverables_active</name>
- <field>
- <name>deliverable_active</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- <index>
- <name>hermes_deliverables_pKey</name>
- <primary>true</primary>
- <field>
- <name>deliverable_id</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>hermes_jobtypes</name>
-
- <declaration>
-
- <field>
- <name>jobtype_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>jobtype_name</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>jobtype_enabled</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>jobtype_rate</name>
- <type>decimal</type>
- <default></default>
- <notnull>false</notnull>
- <length>10,2</length>
- </field>
-
- <field>
- <name>jobtype_billable</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <index>
- <name>hermes_jobtypes_pKey</name>
- <primary>true</primary>
- <field>
- <name>jobtype_id</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
-
- </table>
-
- <table>
-
- <name>hermes_timeslices</name>
-
- <declaration>
-
- <field>
- <name>timeslice_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>clientjob_id</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>employee_id</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>255</length>
- </field>
-
- <field>
- <name>jobtype_id</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>timeslice_hours</name>
- <type>decimal</type>
- <default>0.00</default>
- <notnull>true</notnull>
- <length>10,2</length>
- </field>
-
- <field>
- <name>timeslice_rate</name>
- <type>decimal</type>
- <default></default>
- <notnull>false</notnull>
- <length>10,2</length>
- </field>
-
- <field>
- <name>timeslice_isbillable</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>timeslice_date</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>timeslice_description</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- </field>
-
- <field>
- <name>timeslice_note</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- </field>
-
- <field>
- <name>timeslice_submitted</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>timeslice_exported</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <length>1</length>
- </field>
-
- <field>
- <name>costobject_id</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>255</length>
- </field>
-
- <index>
- <name>hermes_timeslices_pKey</name>
- <primary>true</primary>
- <field>
- <name>timeslice_id</name>
- <sorting>ascending</sorting>
- </field>
- </index>
-
- </declaration>
-
- </table>
-
-</database>
+++ /dev/null
-
-DROP TABLE hermes_invoice_batches;
-DROP TABLE hermes_invoices;
-DROP TABLE hermes_invoice_items;
+++ /dev/null
-ALTER TABLE hermes_jobtypes ADD jobtype_rate FLOAT;
+++ /dev/null
-ALTER TABLE hermes_jobtypes ADD jobtype_billable SMALLINT DEFAULT 1 NOT NULL;
+++ /dev/null
-ALTER TABLE hermes_deliverables DROP INDEX hermes_deliverables_client;
-CREATE INDEX hermes_deliverables_client ON hermes_deliverables (client_id);
-CREATE INDEX hermes_deliverables_active ON hermes_deliverables (deliverable_active);