remove old creation scripts
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 20 Dec 2010 22:22:56 +0000 (17:22 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 21 Dec 2010 01:02:58 +0000 (20:02 -0500)
hermes/scripts/sql/hermes.mssql.sql [deleted file]
hermes/scripts/sql/hermes.oci8.sql [deleted file]
hermes/scripts/sql/hermes.sql [deleted file]
hermes/scripts/sql/hermes.xml [deleted file]
hermes/scripts/upgrades/2007-04-20_drop_invoicing.sql [deleted file]
hermes/scripts/upgrades/2007-04-25_add_jobtype_rate.sql [deleted file]
hermes/scripts/upgrades/2007-10-17_add_jobtype_billable.sql [deleted file]
hermes/scripts/upgrades/2008-07-01_deliverables_index.sql [deleted file]

diff --git a/hermes/scripts/sql/hermes.mssql.sql b/hermes/scripts/sql/hermes.mssql.sql
deleted file mode 100644 (file)
index 61b8ad0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-
-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);
diff --git a/hermes/scripts/sql/hermes.oci8.sql b/hermes/scripts/sql/hermes.oci8.sql
deleted file mode 100644 (file)
index 2bb52e3..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-
-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);
diff --git a/hermes/scripts/sql/hermes.sql b/hermes/scripts/sql/hermes.sql
deleted file mode 100644 (file)
index 2b8387c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-
-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);
diff --git a/hermes/scripts/sql/hermes.xml b/hermes/scripts/sql/hermes.xml
deleted file mode 100644 (file)
index 2b5a072..0000000
+++ /dev/null
@@ -1,315 +0,0 @@
-<?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>
diff --git a/hermes/scripts/upgrades/2007-04-20_drop_invoicing.sql b/hermes/scripts/upgrades/2007-04-20_drop_invoicing.sql
deleted file mode 100644 (file)
index 7065a7d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-
-DROP TABLE hermes_invoice_batches;
-DROP TABLE hermes_invoices;
-DROP TABLE hermes_invoice_items;
diff --git a/hermes/scripts/upgrades/2007-04-25_add_jobtype_rate.sql b/hermes/scripts/upgrades/2007-04-25_add_jobtype_rate.sql
deleted file mode 100644 (file)
index 3c110c9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE hermes_jobtypes ADD jobtype_rate FLOAT;
diff --git a/hermes/scripts/upgrades/2007-10-17_add_jobtype_billable.sql b/hermes/scripts/upgrades/2007-10-17_add_jobtype_billable.sql
deleted file mode 100644 (file)
index 2ff9cc6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE hermes_jobtypes ADD jobtype_billable SMALLINT DEFAULT 1 NOT NULL;
diff --git a/hermes/scripts/upgrades/2008-07-01_deliverables_index.sql b/hermes/scripts/upgrades/2008-07-01_deliverables_index.sql
deleted file mode 100644 (file)
index 6390de3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-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);