allow run in different schemas than Compiere

This commit is contained in:
Carlos Ruiz 2007-02-26 05:41:30 +00:00
parent 61d057576d
commit e4425f75be
2 changed files with 153 additions and 153 deletions

View File

@ -7,7 +7,7 @@
*/
CREATE OR REPLACE FORCE VIEW "COMPIERE"."T_INVOICEGL_V" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
CREATE OR REPLACE FORCE VIEW "T_INVOICEGL_V" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created,i.CreatedBy, i.Updated,i.UpdatedBy,
i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID, i.C_Order_ID,
i.Description, i.SalesRep_ID, i.DateInvoiced, i.DateAcct, i.C_PaymentTerm_ID,
@ -32,7 +32,7 @@ FROM T_InvoiceGL gl
INNER JOIN Fact_Acct fa ON (gl.Fact_Acct_ID=fa.Fact_Acct_ID)
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."T_INVOICEGL_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
CREATE OR REPLACE FORCE VIEW "T_INVOICEGL_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created,i.CreatedBy, i.Updated,i.UpdatedBy,
i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID, i.C_Order_ID,
i.Description, i.SalesRep_ID, i.DateInvoiced, i.DateAcct, i.C_PaymentTerm_ID,
@ -57,7 +57,7 @@ FROM T_InvoiceGL gl
INNER JOIN Fact_Acct fa ON (gl.Fact_Acct_ID=fa.Fact_Acct_ID)
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."M_INOUTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_INOUT_ID", "M_INOUTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID") AS
CREATE OR REPLACE FORCE VIEW "M_INOUTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_INOUT_ID", "M_INOUTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID") AS
SELECT m.AD_Client_ID, m.AD_Org_ID, m.IsActive, m.Created, m.CreatedBy, m.Updated, m.UpdatedBy,
l.M_InOut_ID, m.M_InOutLine_ID, l.Line, l.M_Product_ID,
m.M_AttributeSetInstance_ID, m.MovementQty, l.M_Locator_ID
@ -69,7 +69,7 @@ SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy
FROM M_InOutLine
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."M_MOVEMENTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_MOVEMENT_ID", "M_MOVEMENTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID", "M_LOCATORTO_ID") AS
CREATE OR REPLACE FORCE VIEW "M_MOVEMENTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_MOVEMENT_ID", "M_MOVEMENTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID", "M_LOCATORTO_ID") AS
SELECT m.AD_Client_ID, m.AD_Org_ID, m.IsActive, m.Created, m.CreatedBy, m.Updated, m.UpdatedBy,
l.M_Movement_ID, m.M_MovementLine_ID, l.Line, l.M_Product_ID,
m.M_AttributeSetInstance_ID, m.MovementQty, l.M_Locator_ID, l.M_LocatorTo_ID
@ -81,7 +81,7 @@ FROM M_InOutLine
FROM M_MovementLine
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."RV_C_INVOICE_PRODUCTMONTH" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICE_PRODUCTMONTH" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced,
SUM(il.LineNetAmt) AS LineNetAmt,
@ -99,7 +99,7 @@ FROM M_InOutLine
firstOf(il.DateInvoiced, 'MM'), IsSOTrx
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."RV_C_INVOICE_PRODUCTQTR" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICE_PRODUCTQTR" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'Q') AS DateInvoiced,
SUM(il.LineNetAmt) AS LineNetAmt,
@ -118,7 +118,7 @@ FROM M_InOutLine
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."R_REQUEST_V" ("R_REQUEST_ID", "AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "DOCUMENTNO", "R_REQUESTTYPE_ID", "R_GROUP_ID", "R_CATEGORY_ID", "R_STATUS_ID", "R_RESOLUTION_ID", "R_REQUESTRELATED_ID", "PRIORITY", "PRIORITYUSER", "DUETYPE", "SUMMARY", "CONFIDENTIALTYPE", "ISESCALATED", "ISSELFSERVICE", "SALESREP_ID", "AD_ROLE_ID", "DATELASTACTION", "DATELASTALERT", "LASTRESULT", "PROCESSED", "ISINVOICED", "C_BPARTNER_ID", "AD_USER_ID", "C_CAMPAIGN_ID", "C_ORDER_ID", "C_INVOICE_ID", "C_PAYMENT_ID", "M_PRODUCT_ID", "C_PROJECT_ID", "A_ASSET_ID", "M_INOUT_ID", "M_RMA_ID", "AD_TABLE_ID", "RECORD_ID", "REQUESTAMT", "R_MAILTEXT_ID", "RESULT", "CONFIDENTIALTYPEENTRY", "R_STANDARDRESPONSE_ID", "NEXTACTION", "DATENEXTACTION", "STARTTIME", "ENDTIME", "QTYSPENT", "QTYINVOICED", "M_PRODUCTSPENT_ID", "C_ACTIVITY_ID", "STARTDATE", "CLOSEDATE", "C_INVOICEREQUEST_ID", "M_CHANGEREQUEST_ID", "TASKSTATUS", "QTYPLAN", "DATECOMPLETEPLAN", "DATESTARTPLAN", "M_FIXCHANGENOTICE_ID") AS
CREATE OR REPLACE FORCE VIEW "R_REQUEST_V" ("R_REQUEST_ID", "AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "DOCUMENTNO", "R_REQUESTTYPE_ID", "R_GROUP_ID", "R_CATEGORY_ID", "R_STATUS_ID", "R_RESOLUTION_ID", "R_REQUESTRELATED_ID", "PRIORITY", "PRIORITYUSER", "DUETYPE", "SUMMARY", "CONFIDENTIALTYPE", "ISESCALATED", "ISSELFSERVICE", "SALESREP_ID", "AD_ROLE_ID", "DATELASTACTION", "DATELASTALERT", "LASTRESULT", "PROCESSED", "ISINVOICED", "C_BPARTNER_ID", "AD_USER_ID", "C_CAMPAIGN_ID", "C_ORDER_ID", "C_INVOICE_ID", "C_PAYMENT_ID", "M_PRODUCT_ID", "C_PROJECT_ID", "A_ASSET_ID", "M_INOUT_ID", "M_RMA_ID", "AD_TABLE_ID", "RECORD_ID", "REQUESTAMT", "R_MAILTEXT_ID", "RESULT", "CONFIDENTIALTYPEENTRY", "R_STANDARDRESPONSE_ID", "NEXTACTION", "DATENEXTACTION", "STARTTIME", "ENDTIME", "QTYSPENT", "QTYINVOICED", "M_PRODUCTSPENT_ID", "C_ACTIVITY_ID", "STARTDATE", "CLOSEDATE", "C_INVOICEREQUEST_ID", "M_CHANGEREQUEST_ID", "TASKSTATUS", "QTYPLAN", "DATECOMPLETEPLAN", "DATESTARTPLAN", "M_FIXCHANGENOTICE_ID") AS
SELECT "R_REQUEST_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","DOCUMENTNO","R_REQUESTTYPE_ID","R_GROUP_ID","R_CATEGORY_ID","R_STATUS_ID","R_RESOLUTION_ID","R_REQUESTRELATED_ID","PRIORITY","PRIORITYUSER","DUETYPE","SUMMARY","CONFIDENTIALTYPE","ISESCALATED","ISSELFSERVICE","SALESREP_ID","AD_ROLE_ID","DATELASTACTION","DATELASTALERT","LASTRESULT","PROCESSED","ISINVOICED","C_BPARTNER_ID","AD_USER_ID","C_CAMPAIGN_ID","C_ORDER_ID","C_INVOICE_ID","C_PAYMENT_ID","M_PRODUCT_ID","C_PROJECT_ID","A_ASSET_ID","M_INOUT_ID","M_RMA_ID","AD_TABLE_ID","RECORD_ID","REQUESTAMT","R_MAILTEXT_ID","RESULT","CONFIDENTIALTYPEENTRY","R_STANDARDRESPONSE_ID","NEXTACTION","DATENEXTACTION","STARTTIME","ENDTIME","QTYSPENT","QTYINVOICED","M_PRODUCTSPENT_ID","C_ACTIVITY_ID","STARTDATE","CLOSEDATE","C_INVOICEREQUEST_ID","M_CHANGEREQUEST_ID","TASKSTATUS","QTYPLAN","DATECOMPLETEPLAN","DATESTARTPLAN","M_FIXCHANGENOTICE_ID"
FROM R_Request
WHERE IsActive='Y' AND Processed='N'
@ -126,7 +126,7 @@ FROM M_InOutLine
;
CREATE OR REPLACE FORCE VIEW "COMPIERE"."RV_C_INVOICELINE" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICELINE_ID", "C_INVOICE_ID", "SALESREP_ID", "C_BPARTNER_ID", "C_BP_GROUP_ID", "M_PRODUCT_ID", "M_PRODUCT_CATEGORY_ID", "DATEINVOICED", "DATEACCT", "ISSOTRX", "C_DOCTYPE_ID", "DOCSTATUS", "ISPAID", "QTYINVOICED", "QTYENTERED", "M_ATTRIBUTESETINSTANCE_ID", "PRODUCTATTRIBUTE", "M_ATTRIBUTESET_ID", "M_LOT_ID", "GUARANTEEDATE", "LOT", "SERNO", "PRICELIST", "PRICEACTUAL", "PRICELIMIT", "PRICEENTERED", "DISCOUNT", "MARGIN", "MARGINAMT", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEOVERLIMITAMT") AS
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICELINE" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICELINE_ID", "C_INVOICE_ID", "SALESREP_ID", "C_BPARTNER_ID", "C_BP_GROUP_ID", "M_PRODUCT_ID", "M_PRODUCT_CATEGORY_ID", "DATEINVOICED", "DATEACCT", "ISSOTRX", "C_DOCTYPE_ID", "DOCSTATUS", "ISPAID", "QTYINVOICED", "QTYENTERED", "M_ATTRIBUTESETINSTANCE_ID", "PRODUCTATTRIBUTE", "M_ATTRIBUTESET_ID", "M_LOT_ID", "GUARANTEEDATE", "LOT", "SERNO", "PRICELIST", "PRICEACTUAL", "PRICELIMIT", "PRICEENTERED", "DISCOUNT", "MARGIN", "MARGINAMT", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEOVERLIMITAMT") AS
SELECT
il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
il.C_InvoiceLine_ID, i.C_Invoice_ID, i.SalesRep_ID,
@ -248,4 +248,4 @@ FROM M_InOutLine
update AD_System set version='2006-01-20';
COMMIT;
COMMIT;

View File

@ -21,7 +21,7 @@
-- of your editor. So just follow the instructions there.
CREATE TABLE "COMPIERE"."AD_CLIENTSHARE"
CREATE TABLE "AD_CLIENTSHARE"
( "AD_CLIENTSHARE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -37,17 +37,17 @@
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "AD_CLIENTSHARE_KEY" PRIMARY KEY ("AD_CLIENTSHARE_ID") ENABLE,
CONSTRAINT "ADCLIENT_ADCLIENTSHARE" FOREIGN KEY ("AD_CLIENT_ID")
REFERENCES "COMPIERE"."AD_CLIENT" ("AD_CLIENT_ID") ENABLE,
REFERENCES "AD_CLIENT" ("AD_CLIENT_ID") ENABLE,
CONSTRAINT "ADORG_ADCLIENTSHARE" FOREIGN KEY ("AD_ORG_ID")
REFERENCES "COMPIERE"."AD_ORG" ("AD_ORG_ID") ENABLE,
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "ADTABLE_ADCLIENTSHARE" FOREIGN KEY ("AD_TABLE_ID")
REFERENCES "COMPIERE"."AD_TABLE" ("AD_TABLE_ID") ENABLE
REFERENCES "AD_TABLE" ("AD_TABLE_ID") ENABLE
) ;
CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSHARE" ("AD_CLIENT_ID", "AD_TABLE_ID") ;
CREATE UNIQUE INDEX "AD_CLIENTSHARE_TABLE" ON "AD_CLIENTSHARE" ("AD_CLIENT_ID", "AD_TABLE_ID") ;
CREATE TABLE "COMPIERE"."R_ISSUESYSTEM"
CREATE TABLE "R_ISSUESYSTEM"
( "R_ISSUESYSTEM_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -66,9 +66,9 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
) ;
CREATE UNIQUE INDEX "COMPIERE"."R_ISSUESYSTEM_ADDRESS" ON "COMPIERE"."R_ISSUESYSTEM" ("DBADDRESS") ;
CREATE UNIQUE INDEX "R_ISSUESYSTEM_ADDRESS" ON "R_ISSUESYSTEM" ("DBADDRESS") ;
CREATE TABLE "COMPIERE"."R_ISSUEUSER"
CREATE TABLE "R_ISSUEUSER"
( "R_ISSUEUSER_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -83,12 +83,12 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUEUSER_KEY" PRIMARY KEY ("R_ISSUEUSER_ID") ENABLE,
CONSTRAINT "ADUSER_RISSUEUSER" FOREIGN KEY ("AD_USER_ID")
REFERENCES "COMPIERE"."AD_USER" ("AD_USER_ID") ENABLE
REFERENCES "AD_USER" ("AD_USER_ID") ENABLE
) ;
CREATE UNIQUE INDEX "COMPIERE"."R_ISSUEUSER_EMAIL" ON "COMPIERE"."R_ISSUEUSER" ("USERNAME", "AD_CLIENT_ID") ;
CREATE UNIQUE INDEX "R_ISSUEUSER_EMAIL" ON "R_ISSUEUSER" ("USERNAME", "AD_CLIENT_ID") ;
CREATE TABLE "COMPIERE"."R_ISSUESTATUS"
CREATE TABLE "R_ISSUESTATUS"
( "R_ISSUESTATUS_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -103,7 +103,7 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
CONSTRAINT "R_ISSUESTATUS_KEY" PRIMARY KEY ("R_ISSUESTATUS_ID") ENABLE
) ;
CREATE TABLE "COMPIERE"."R_ISSUEPROJECT"
CREATE TABLE "R_ISSUEPROJECT"
( "R_ISSUEPROJECT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -122,15 +122,15 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUEPROJECT_KEY" PRIMARY KEY ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "AASSET_RISSUEPROJECT" FOREIGN KEY ("A_ASSET_ID")
REFERENCES "COMPIERE"."A_ASSET" ("A_ASSET_ID") ENABLE,
REFERENCES "A_ASSET" ("A_ASSET_ID") ENABLE,
CONSTRAINT "CPROJECT_RISSUEPROJECT" FOREIGN KEY ("C_PROJECT_ID")
REFERENCES "COMPIERE"."C_PROJECT" ("C_PROJECT_ID") ENABLE
REFERENCES "C_PROJECT" ("C_PROJECT_ID") ENABLE
) ;
CREATE INDEX "COMPIERE"."R_ISSUEPROJECT_NAME" ON "COMPIERE"."R_ISSUEPROJECT" ("NAME") ;
CREATE INDEX "R_ISSUEPROJECT_NAME" ON "R_ISSUEPROJECT" ("NAME") ;
CREATE TABLE "COMPIERE"."R_ISSUERECOMMENDATION"
CREATE TABLE "R_ISSUERECOMMENDATION"
( "R_ISSUERECOMMENDATION_ID" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -146,7 +146,7 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
CONSTRAINT "R_ISSUERECOMMENDATION_KEY" PRIMARY KEY ("R_ISSUERECOMMENDATION_ID") ENABLE
) ;
CREATE TABLE "COMPIERE"."R_ISSUEKNOWN"
CREATE TABLE "R_ISSUEKNOWN"
( "R_ISSUEKNOWN_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -170,16 +170,16 @@ CREATE UNIQUE INDEX "COMPIERE"."AD_CLIENTSHARE_TABLE" ON "COMPIERE"."AD_CLIENTSH
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_KNOWNISSUE_KEY" PRIMARY KEY ("R_ISSUEKNOWN_ID") ENABLE,
CONSTRAINT "RISSUEREC_RISSUEKNOWN" FOREIGN KEY ("R_ISSUERECOMMENDATION_ID")
REFERENCES "COMPIERE"."R_ISSUERECOMMENDATION" ("R_ISSUERECOMMENDATION_ID") ENABLE,
REFERENCES "R_ISSUERECOMMENDATION" ("R_ISSUERECOMMENDATION_ID") ENABLE,
CONSTRAINT "RISSUESTATUS_RISSUEKNOWN" FOREIGN KEY ("R_ISSUESTATUS_ID")
REFERENCES "COMPIERE"."R_ISSUESTATUS" ("R_ISSUESTATUS_ID") ENABLE,
REFERENCES "R_ISSUESTATUS" ("R_ISSUESTATUS_ID") ENABLE,
CONSTRAINT "RREQUEST_RISSUEKNOWN" FOREIGN KEY ("R_REQUEST_ID")
REFERENCES "COMPIERE"."R_REQUEST" ("R_REQUEST_ID") ENABLE
REFERENCES "R_REQUEST" ("R_REQUEST_ID") ENABLE
) ;
CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" ("ISSUESUMMARY", "RELEASENO", "SOURCECLASSNAME", "SOURCEMETHODNAME", "LOGGERNAME", "LINENO") ;
CREATE UNIQUE INDEX "R_KNOWNISSUE_ALT" ON "R_ISSUEKNOWN" ("ISSUESUMMARY", "RELEASENO", "SOURCECLASSNAME", "SOURCEMETHODNAME", "LOGGERNAME", "LINENO") ;
CREATE TABLE "COMPIERE"."R_ISSUESOURCE"
CREATE TABLE "R_ISSUESOURCE"
( "R_ISSUESOURCE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -196,17 +196,17 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUESOURCE_KEY" PRIMARY KEY ("R_ISSUESOURCE_ID") ENABLE,
CONSTRAINT "RISSUEPROJECT_RISSUESOURCE" FOREIGN KEY ("R_ISSUEPROJECT_ID")
REFERENCES "COMPIERE"."R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
REFERENCES "R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "RISSUESYSTEM_RISSUESOURCE" FOREIGN KEY ("R_ISSUESYSTEM_ID")
REFERENCES "COMPIERE"."R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
REFERENCES "R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
CONSTRAINT "RISSUEUSER_RISSUESOURCE" FOREIGN KEY ("R_ISSUEUSER_ID")
REFERENCES "COMPIERE"."R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE
REFERENCES "R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE
) ;
CREATE UNIQUE INDEX "COMPIERE"."R_ISSUESOURCE_SPO" ON "COMPIERE"."R_ISSUESOURCE" ("R_ISSUESYSTEM_ID", "R_ISSUEPROJECT_ID", "R_ISSUEUSER_ID") ;
CREATE UNIQUE INDEX "R_ISSUESOURCE_SPO" ON "R_ISSUESOURCE" ("R_ISSUESYSTEM_ID", "R_ISSUEPROJECT_ID", "R_ISSUEUSER_ID") ;
CREATE TABLE "COMPIERE"."AD_ISSUE"
CREATE TABLE "AD_ISSUE"
( "AD_ISSUE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -264,30 +264,30 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsReproducible in ('Y','N')) ENABLE,
CONSTRAINT "AD_ISSUE_KEY" PRIMARY KEY ("AD_ISSUE_ID") ENABLE,
CONSTRAINT "AASSET_ADISSUE" FOREIGN KEY ("A_ASSET_ID")
REFERENCES "COMPIERE"."A_ASSET" ("A_ASSET_ID") ON DELETE SET NULL ENABLE,
REFERENCES "A_ASSET" ("A_ASSET_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADFORM_ADISSUE" FOREIGN KEY ("AD_FORM_ID")
REFERENCES "COMPIERE"."AD_FORM" ("AD_FORM_ID") ON DELETE SET NULL ENABLE,
REFERENCES "AD_FORM" ("AD_FORM_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADPROCESS_ADISSUE" FOREIGN KEY ("AD_PROCESS_ID")
REFERENCES "COMPIERE"."AD_PROCESS" ("AD_PROCESS_ID") ON DELETE SET NULL ENABLE,
REFERENCES "AD_PROCESS" ("AD_PROCESS_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADWINDOW_ADISSUE" FOREIGN KEY ("AD_WINDOW_ID")
REFERENCES "COMPIERE"."AD_WINDOW" ("AD_WINDOW_ID") ON DELETE SET NULL ENABLE,
REFERENCES "AD_WINDOW" ("AD_WINDOW_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "RISSUEPROJECT_ADISSUE" FOREIGN KEY ("R_ISSUEPROJECT_ID")
REFERENCES "COMPIERE"."R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
REFERENCES "R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "RISSUESYSTEM_AD_ISSUE" FOREIGN KEY ("R_ISSUESYSTEM_ID")
REFERENCES "COMPIERE"."R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
REFERENCES "R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
CONSTRAINT "RISSUEUSER_ADISSUE" FOREIGN KEY ("R_ISSUEUSER_ID")
REFERENCES "COMPIERE"."R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE,
REFERENCES "R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE,
CONSTRAINT "RKNOWNISSUE_ADISSUE" FOREIGN KEY ("R_ISSUEKNOWN_ID")
REFERENCES "COMPIERE"."R_ISSUEKNOWN" ("R_ISSUEKNOWN_ID") ENABLE,
REFERENCES "R_ISSUEKNOWN" ("R_ISSUEKNOWN_ID") ENABLE,
CONSTRAINT "RREQUEST_ADISSUE" FOREIGN KEY ("R_REQUEST_ID")
REFERENCES "COMPIERE"."R_REQUEST" ("R_REQUEST_ID") ON DELETE SET NULL ENABLE
REFERENCES "R_REQUEST" ("R_REQUEST_ID") ON DELETE SET NULL ENABLE
) ;
COMMENT ON TABLE "COMPIERE"."AD_ISSUE" IS 'Compiere Automatic Issue Reporting';
COMMENT ON TABLE "AD_ISSUE" IS 'Compiere Automatic Issue Reporting';
CREATE TABLE "COMPIERE"."C_SUBACCT"
CREATE TABLE "C_SUBACCT"
( "C_SUBACCT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -304,10 +304,10 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "C_SUBACCT_KEY" PRIMARY KEY ("C_SUBACCT_ID") ENABLE,
CONSTRAINT "CELEMENTVALUE_CSUBACCT" FOREIGN KEY ("C_ELEMENTVALUE_ID")
REFERENCES "COMPIERE"."C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ON DELETE CASCADE ENABLE
REFERENCES "C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ON DELETE CASCADE ENABLE
) ;
CREATE TABLE "COMPIERE"."PA_GOALRESTRICTION"
CREATE TABLE "PA_GOALRESTRICTION"
( "PA_GOALRESTRICTION_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -327,22 +327,22 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_GOALRESTRICTION_KEY" PRIMARY KEY ("PA_GOALRESTRICTION_ID") ENABLE,
CONSTRAINT "ADORG2_PAGOALRESTRICTION" FOREIGN KEY ("ORG_ID")
REFERENCES "COMPIERE"."AD_ORG" ("AD_ORG_ID") ENABLE,
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "ADORG_PAGOALRESTRICTION" FOREIGN KEY ("AD_ORG_ID")
REFERENCES "COMPIERE"."AD_ORG" ("AD_ORG_ID") ENABLE,
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "CBPARTNER_PAGOALRESTRICTION" FOREIGN KEY ("C_BPARTNER_ID")
REFERENCES "COMPIERE"."C_BPARTNER" ("C_BPARTNER_ID") ENABLE,
REFERENCES "C_BPARTNER" ("C_BPARTNER_ID") ENABLE,
CONSTRAINT "CBPGROUP_PAGOALRESTRICTION" FOREIGN KEY ("C_BP_GROUP_ID")
REFERENCES "COMPIERE"."C_BP_GROUP" ("C_BP_GROUP_ID") ENABLE,
REFERENCES "C_BP_GROUP" ("C_BP_GROUP_ID") ENABLE,
CONSTRAINT "MPRODUCTCAT_PAGOALRESTRICTION" FOREIGN KEY ("M_PRODUCT_CATEGORY_ID")
REFERENCES "COMPIERE"."M_PRODUCT_CATEGORY" ("M_PRODUCT_CATEGORY_ID") ENABLE,
REFERENCES "M_PRODUCT_CATEGORY" ("M_PRODUCT_CATEGORY_ID") ENABLE,
CONSTRAINT "MPRODUCT_PAGOALRESTRICTION" FOREIGN KEY ("M_PRODUCT_ID")
REFERENCES "COMPIERE"."M_PRODUCT" ("M_PRODUCT_ID") ENABLE,
REFERENCES "M_PRODUCT" ("M_PRODUCT_ID") ENABLE,
CONSTRAINT "PAGOAL_PAGOALRESTRICTION" FOREIGN KEY ("PA_GOAL_ID")
REFERENCES "COMPIERE"."PA_GOAL" ("PA_GOAL_ID") ENABLE
REFERENCES "PA_GOAL" ("PA_GOAL_ID") ENABLE
) ;
CREATE TABLE "COMPIERE"."R_MAILTEXT_TRL"
CREATE TABLE "R_MAILTEXT_TRL"
( "R_MAILTEXT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_LANGUAGE" VARCHAR2(6 BYTE) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -362,12 +362,12 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsTranslated in ('Y','N')) ENABLE,
CONSTRAINT "R_MAILTEXT_TRL_KEY" PRIMARY KEY ("R_MAILTEXT_ID", "AD_LANGUAGE") ENABLE,
CONSTRAINT "ADLANGUAGE_RMAILTEXTTRL" FOREIGN KEY ("AD_LANGUAGE")
REFERENCES "COMPIERE"."AD_LANGUAGE" ("AD_LANGUAGE") ENABLE,
REFERENCES "AD_LANGUAGE" ("AD_LANGUAGE") ENABLE,
CONSTRAINT "RMAILTEXT_RMAILTEXTTRL" FOREIGN KEY ("R_MAILTEXT_ID")
REFERENCES "COMPIERE"."R_MAILTEXT" ("R_MAILTEXT_ID") ON DELETE CASCADE ENABLE
REFERENCES "R_MAILTEXT" ("R_MAILTEXT_ID") ON DELETE CASCADE ENABLE
) ;
CREATE TABLE "COMPIERE"."PA_COLORSCHEMA"
CREATE TABLE "PA_COLORSCHEMA"
( "PA_COLORSCHEMA_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -389,13 +389,13 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_COLORSCHEMA_KEY" PRIMARY KEY ("PA_COLORSCHEMA_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR1_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR1_ID")
REFERENCES "COMPIERE"."AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR2_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR2_ID")
REFERENCES "COMPIERE"."AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR3_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR3_ID")
REFERENCES "COMPIERE"."AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR4_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR4_ID")
REFERENCES "COMPIERE"."AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE
) ;
/* INSERTING into PA_COLORSCHEMA */
@ -403,7 +403,7 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
Insert into "PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MARK1PERCENT","AD_PRINTCOLOR1_ID","MARK2PERCENT","AD_PRINTCOLOR2_ID","MARK3PERCENT","AD_PRINTCOLOR3_ID","MARK4PERCENT","AD_PRINTCOLOR4_ID") values (100,0,0,'Y',to_date('23.12.05','DD.MM.RR'),100,to_date('31.12.05','DD.MM.RR'),100,'Red (50) - Yellow (100) - Green','>= 100% is the goal',50,102,100,113,9999,103,0,null);
CREATE TABLE "COMPIERE"."PA_RATIO"
CREATE TABLE "PA_RATIO"
( "PA_RATIO_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -419,14 +419,14 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_RATIO_KEY" PRIMARY KEY ("PA_RATIO_ID") ENABLE,
CONSTRAINT "CACCTSCHEMA_PARATIO" FOREIGN KEY ("C_ACCTSCHEMA_ID")
REFERENCES "COMPIERE"."C_ACCTSCHEMA" ("C_ACCTSCHEMA_ID") ENABLE
REFERENCES "C_ACCTSCHEMA" ("C_ACCTSCHEMA_ID") ENABLE
) ;
/* INSERTING into PA_RATIO */
Insert into "PA_RATIO" ("PA_RATIO_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","C_ACCTSCHEMA_ID") values (100,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Fxed Assets',null,null,101);
CREATE TABLE "COMPIERE"."PA_RATIOELEMENT"
CREATE TABLE "PA_RATIOELEMENT"
( "PA_RATIOELEMENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -449,13 +449,13 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_RATIOELEMENT_KEY" PRIMARY KEY ("PA_RATIOELEMENT_ID") ENABLE,
CONSTRAINT "CELEMENTVALUE_PARATIOELEMENT" FOREIGN KEY ("ACCOUNT_ID")
REFERENCES "COMPIERE"."C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ENABLE,
REFERENCES "C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ENABLE,
CONSTRAINT "PAMEASURECALC_PARATIOELEMENT" FOREIGN KEY ("PA_MEASURECALC_ID")
REFERENCES "COMPIERE"."PA_MEASURECALC" ("PA_MEASURECALC_ID") ENABLE,
REFERENCES "PA_MEASURECALC" ("PA_MEASURECALC_ID") ENABLE,
CONSTRAINT "PARATIOUSED_PARATIOELEMENT" FOREIGN KEY ("PA_RATIOUSED_ID")
REFERENCES "COMPIERE"."PA_RATIO" ("PA_RATIO_ID") ENABLE,
REFERENCES "PA_RATIO" ("PA_RATIO_ID") ENABLE,
CONSTRAINT "PARATIO_PARATIOELEMENT" FOREIGN KEY ("PA_RATIO_ID")
REFERENCES "COMPIERE"."PA_RATIO" ("PA_RATIO_ID") ENABLE
REFERENCES "PA_RATIO" ("PA_RATIO_ID") ENABLE
) ;
/* INSERTING into PA_RATIOELEMENT */
@ -464,7 +464,7 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
Insert into "PA_RATIOELEMENT" ("PA_RATIOELEMENT_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","PA_RATIO_ID","RATIOOPERAND","RATIOELEMENTTYPE","ACCOUNT_ID","PA_RATIOUSED_ID","PA_MEASURECALC_ID","CONSTANTVALUE","SEQNO","POSTINGTYPE") values (102,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Land and Building',null,100,'P','A',554,null,null,0,0,null);
CREATE TABLE "COMPIERE"."R_STATUSCATEGORY"
CREATE TABLE "R_STATUSCATEGORY"
( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -486,7 +486,7 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
Insert into "R_STATUSCATEGORY" ("R_STATUSCATEGORY_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","ISDEFAULT") values (100,11,0,'Y',to_date('15.01.06','DD.MM.RR'),100,to_date('15.01.06','DD.MM.RR'),100,'Default','Default Request Status',null,'Y');
CREATE TABLE "COMPIERE"."PA_BENCHMARK"
CREATE TABLE "PA_BENCHMARK"
( "PA_BENCHMARK_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -503,7 +503,7 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CONSTRAINT "PA_BENMARK_KEY" PRIMARY KEY ("PA_BENCHMARK_ID") ENABLE
) ;
CREATE TABLE "COMPIERE"."PA_BENCHMARKDATA"
CREATE TABLE "PA_BENCHMARKDATA"
( "PA_BENCHMARKDATA_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
@ -520,61 +520,61 @@ CREATE UNIQUE INDEX "COMPIERE"."R_KNOWNISSUE_ALT" ON "COMPIERE"."R_ISSUEKNOWN" (
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_BENCHMARKDATA_KEY" PRIMARY KEY ("PA_BENCHMARKDATA_ID") ENABLE,
CONSTRAINT "PABENCHMARK_PABENCHMARKDATA" FOREIGN KEY ("PA_BENCHMARK_ID")
REFERENCES "COMPIERE"."PA_BENCHMARK" ("PA_BENCHMARK_ID") ON DELETE CASCADE ENABLE
REFERENCES "PA_BENCHMARK" ("PA_BENCHMARK_ID") ON DELETE CASCADE ENABLE
) ;
/* alter existing tables - add new columns */
ALTER TABLE "COMPIERE"."C_TAXDECLARATIONACCT"
ALTER TABLE "C_TAXDECLARATIONACCT"
ADD "LINE" NUMBER(10,0);
ALTER TABLE "COMPIERE"."C_TAXDECLARATIONLINE"
ALTER TABLE "C_TAXDECLARATIONLINE"
ADD ("ISMANUAL" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"C_CURRENCY_ID" NUMBER(10,0) NULL );
-- REPLACE_ME: set a
-- default value for C_Currency_ID (the default currency) 102 is EUR, 100 is USD
UPDATE "COMPIERE"."C_TAXDECLARATIONLINE" SET "C_CURRENCY_ID"=102;
UPDATE "C_TAXDECLARATIONLINE" SET "C_CURRENCY_ID"=100;
ALTER TABLE "COMPIERE"."C_TAXDECLARATIONLINE"
ALTER TABLE "C_TAXDECLARATIONLINE"
MODIFY ("C_CURRENCY_ID" NUMBER(10,0) NOT NULL ENABLE);
ALTER TABLE "COMPIERE"."C_TAXDECLARATIONLINE"
ALTER TABLE "C_TAXDECLARATIONLINE"
ADD CONSTRAINT "CCURRENCY_CTAXDECLLINE" FOREIGN KEY ("C_CURRENCY_ID")
REFERENCES "COMPIERE"."C_CURRENCY" ("C_CURRENCY_ID");
REFERENCES "C_CURRENCY" ("C_CURRENCY_ID");
ALTER TABLE "COMPIERE"."FACT_ACCT_BALANCE"
ALTER TABLE "FACT_ACCT_BALANCE"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0));
ALTER TABLE "COMPIERE"."PA_ACHIEVEMENT"
ALTER TABLE "PA_ACHIEVEMENT"
ADD ( "MANUALACTUAL" NUMBER DEFAULT 0 NOT NULL,
"PA_MEASURE_ID" NUMBER(10,0) NULL,
"DATEDOC" DATE);
ALTER TABLE "COMPIERE"."PA_ACHIEVEMENT"
ALTER TABLE "PA_ACHIEVEMENT"
ADD CONSTRAINT "PAMEASURE_PAACHIEVEMENT" FOREIGN KEY ("PA_MEASURE_ID")
REFERENCES "COMPIERE"."PA_MEASURE" ("PA_MEASURE_ID");
REFERENCES "PA_MEASURE" ("PA_MEASURE_ID");
-- REPLACE_ME: if there are lines in the table you have to set a
-- default value for PA_MEASURE_ID (references PA_Measure)
UPDATE "COMPIERE"."PA_ACHIEVEMENT" SET "PA_MEASURE_ID"=0;
UPDATE "PA_ACHIEVEMENT" SET "PA_MEASURE_ID"=0;
ALTER TABLE "COMPIERE"."PA_ACHIEVEMENT"
ALTER TABLE "PA_ACHIEVEMENT"
MODIFY "PA_MEASURE_ID" NUMBER(10,0) NOT NULL;
/* BEWARE: ALL ENTRIES IN PA_MEASURE AND PA_MEASURECALC ARE DELETED */
DELETE FROM "COMPIERE"."PA_MEASURE";
DELETE FROM "COMPIERE"."PA_MEASURECALC";
DELETE FROM "PA_MEASURE";
DELETE FROM "PA_MEASURECALC";
ALTER TABLE "COMPIERE"."PA_MEASURECALC"
ALTER TABLE "PA_MEASURECALC"
ADD ( "AD_TABLE_ID" NUMBER(10,0) NOT NULL ENABLE,
"KEYCOLUMN" NVARCHAR2(60) NOT NULL ENABLE,
"ENTITYTYPE" VARCHAR2(4 BYTE) NOT NULL ENABLE
@ -599,7 +599,7 @@ Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","IS
FROM C_Invoice_v C_Invoice','WHERE IsSOTrx=''Y'' AND Processed=''Y''','DateInvoiced','AD_Org_ID','C_BPartner_ID',null,318,'C_Invoice_ID','D');
ALTER TABLE "COMPIERE"."PA_MEASURE"
ALTER TABLE "PA_MEASURE"
ADD ( "PA_BENCHMARK_ID" NUMBER(10,0),
"PA_RATIO_ID" NUMBER(10,0),
"PA_HIERARCHY_ID" NUMBER(10,0),
@ -608,15 +608,15 @@ FROM C_Invoice_v C_Invoice','WHERE IsSOTrx=''Y'' AND Processed=''Y''','DateInvoi
"C_PROJECTTYPE_ID" NUMBER(10,0)
) ;
ALTER TABLE "COMPIERE"."PA_MEASURE"
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PABENCHMARK_PAMEASURE" FOREIGN KEY ("PA_BENCHMARK_ID")
REFERENCES "COMPIERE"."PA_BENCHMARK" ("PA_BENCHMARK_ID");
ALTER TABLE "COMPIERE"."PA_MEASURE"
REFERENCES "PA_BENCHMARK" ("PA_BENCHMARK_ID");
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PAHIERARCHY_PAMEASURE" FOREIGN KEY ("PA_HIERARCHY_ID")
REFERENCES "COMPIERE"."PA_HIERARCHY" ("PA_HIERARCHY_ID");
ALTER TABLE "COMPIERE"."PA_MEASURE"
REFERENCES "PA_HIERARCHY" ("PA_HIERARCHY_ID");
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PARATIO_PAMEASURE" FOREIGN KEY ("PA_RATIO_ID")
REFERENCES "COMPIERE"."PA_RATIO" ("PA_RATIO_ID");
REFERENCES "PA_RATIO" ("PA_RATIO_ID");
/* INSERTING into PA_MEASURE */
Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MEASURETYPE","MANUALACTUAL","MANUALNOTE","CALCULATIONCLASS","PA_MEASURECALC_ID","PA_BENCHMARK_ID","PA_RATIO_ID","PA_HIERARCHY_ID","MEASUREDATATYPE","R_REQUESTTYPE_ID","C_PROJECTTYPE_ID") values (102,11,0,'Y',to_date('01.01.06','DD.MM.RR'),100,to_date('01.01.06','DD.MM.RR'),100,'Open Invoice Amount',null,'C',0,null,null,105,null,null,null,'S',null,null);
@ -627,7 +627,7 @@ Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE",
ALTER TABLE "COMPIERE"."PA_GOAL"
ALTER TABLE "PA_GOAL"
ADD ( "AD_USER_ID" NUMBER(10,0),
"PA_COLORSCHEMA_ID" NUMBER(10,0) NOT NULL ENABLE,
"PA_GOALPARENT_ID" NUMBER(10,0),
@ -638,17 +638,17 @@ Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE",
"AD_ROLE_ID" NUMBER(10,0)
) ;
ALTER TABLE "COMPIERE"."PA_GOAL"
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "ADUSER_PAGOAL" FOREIGN KEY ("AD_USER_ID")
REFERENCES "COMPIERE"."AD_USER" ("AD_USER_ID");
REFERENCES "AD_USER" ("AD_USER_ID");
ALTER TABLE "COMPIERE"."PA_GOAL"
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "PACOLORSCHEMA_PAGOAL" FOREIGN KEY ("PA_COLORSCHEMA_ID")
REFERENCES "COMPIERE"."PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID");
REFERENCES "PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID");
ALTER TABLE "COMPIERE"."PA_GOAL"
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "PAGOALPARENT_PAGOAL" FOREIGN KEY ("PA_GOALPARENT_ID")
REFERENCES "COMPIERE"."PA_GOAL" ("PA_GOAL_ID");
REFERENCES "PA_GOAL" ("PA_GOAL_ID");
/* INSERTING into PA_GOAL */
@ -660,26 +660,26 @@ Insert into "PA_GOAL" ("PA_GOAL_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREAT
/* BEWARE ALL ENTRIES IN T_INVENTORYVALUE ARE DELETED*/
DELETE FROM "COMPIERE"."T_INVENTORYVALUE";
DELETE FROM "T_INVENTORYVALUE";
ALTER TABLE "COMPIERE"."T_INVENTORYVALUE"
ALTER TABLE "T_INVENTORYVALUE"
ADD ( "M_ATTRIBUTESETINSTANCE_ID" NUMBER(10,0) NOT NULL ENABLE,
"COST" NUMBER DEFAULT 0,
"COSTAMT" NUMBER DEFAULT 0,
"M_COSTELEMENT_ID" NUMBER(10,0));
ALTER TABLE "COMPIERE"."T_INVENTORYVALUE"
ALTER TABLE "T_INVENTORYVALUE"
ADD CONSTRAINT "MASI_TINVENTORYVALUE" FOREIGN KEY ("M_ATTRIBUTESETINSTANCE_ID")
REFERENCES "COMPIERE"."M_ATTRIBUTESETINSTANCE" ("M_ATTRIBUTESETINSTANCE_ID");
REFERENCES "M_ATTRIBUTESETINSTANCE" ("M_ATTRIBUTESETINSTANCE_ID");
ALTER TABLE "COMPIERE"."T_INVENTORYVALUE"
ALTER TABLE "T_INVENTORYVALUE"
ADD CONSTRAINT "MCOSTELEMENT_TINVENTORYVALUE" FOREIGN KEY ("M_COSTELEMENT_ID")
REFERENCES "COMPIERE"."M_COSTELEMENT" ("M_COSTELEMENT_ID");
REFERENCES "M_COSTELEMENT" ("M_COSTELEMENT_ID");
ALTER TABLE "COMPIERE"."T_INVOICEGL"
ALTER TABLE "T_INVOICEGL"
ADD ( "GRANDTOTAL" NUMBER DEFAULT 0 NOT NULL ENABLE,
"OPENAMT" NUMBER DEFAULT 0 NOT NULL ENABLE,
"PERCENT" NUMBER,
@ -688,15 +688,15 @@ ADD ( "GRANDTOTAL" NUMBER DEFAULT 0 NOT NULL ENABLE,
"C_DOCTYPEREVAL_ID" NUMBER(10,0),
"ISALLCURRENCIES" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE);
ALTER TABLE "COMPIERE"."T_INVOICEGL"
ALTER TABLE "T_INVOICEGL"
ADD CONSTRAINT "CDOCTYPE_TINVOICEGL" FOREIGN KEY ("C_DOCTYPEREVAL_ID")
REFERENCES "COMPIERE"."C_DOCTYPE" ("C_DOCTYPE_ID");
REFERENCES "C_DOCTYPE" ("C_DOCTYPE_ID");
COMMENT ON TABLE "COMPIERE"."T_INVOICEGL" IS 'The real data displayed in T_InvoiceGL_v';
COMMENT ON TABLE "T_INVOICEGL" IS 'The real data displayed in T_InvoiceGL_v';
ALTER TABLE "COMPIERE"."A_ASSET"
ALTER TABLE "A_ASSET"
ADD ( "LASTMAINTENENCEDATE" DATE,
"NEXTMAINTENENCEDATE" DATE DEFAULT NULL,
"LASTMAINTENANCEUSEUNIT" NUMBER(10,0),
@ -710,34 +710,34 @@ COMMENT ON TABLE "COMPIERE"."T_INVOICEGL" IS 'The real data displayed in T_Invo
ALTER TABLE "COMPIERE"."C_VALIDCOMBINATION"
ALTER TABLE "C_VALIDCOMBINATION"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0) ) ;
DROP INDEX "COMPIERE"."C_VALIDCOMBINATION_ALT";
DROP INDEX "C_VALIDCOMBINATION_ALT";
CREATE UNIQUE INDEX "COMPIERE"."C_VALIDCOMBINATION_ALT" ON "COMPIERE"."C_VALIDCOMBINATION" ("C_ACCTSCHEMA_ID", "AD_ORG_ID", "ACCOUNT_ID", "C_SUBACCT_ID", "M_PRODUCT_ID", "C_BPARTNER_ID", "AD_ORGTRX_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "C_PROJECT_ID", "C_CAMPAIGN_ID", "C_ACTIVITY_ID", "USER1_ID", "USER2_ID", "USERELEMENT1_ID", "USERELEMENT2_ID")
CREATE UNIQUE INDEX "C_VALIDCOMBINATION_ALT" ON "C_VALIDCOMBINATION" ("C_ACCTSCHEMA_ID", "AD_ORG_ID", "ACCOUNT_ID", "C_SUBACCT_ID", "M_PRODUCT_ID", "C_BPARTNER_ID", "AD_ORGTRX_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "C_PROJECT_ID", "C_CAMPAIGN_ID", "C_ACTIVITY_ID", "USER1_ID", "USER2_ID", "USERELEMENT1_ID", "USERELEMENT2_ID")
;
ALTER TABLE "COMPIERE"."FACT_ACCT"
ALTER TABLE "FACT_ACCT"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0)) ;
ALTER TABLE "COMPIERE"."I_BPARTNER"
ALTER TABLE "I_BPARTNER"
ADD ( "R_INTERESTAREA_ID" NUMBER(10,0),
"INTERESTAREANAME" NVARCHAR2(40)) ;
ALTER TABLE "COMPIERE"."M_MATCHINV"
ALTER TABLE "M_MATCHINV"
ADD ( "DESCRIPTION" NVARCHAR2(255)) ;
ALTER TABLE "COMPIERE"."M_MATCHPO"
ALTER TABLE "M_MATCHPO"
ADD ( "PRICEMATCHDIFFERENCE" NUMBER,
"ISAPPROVED" CHAR(1 BYTE) DEFAULT 'Y',
"DESCRIPTION" NVARCHAR2(255)) ;
@ -745,23 +745,23 @@ ADD ( "DESCRIPTION" NVARCHAR2(255)) ;
/* REPLACE_ME: set 1000017 to your clients C_DOCTYPE_ID for Purchase Requisition */
/* find it by: select C_DOCTYPE_ID from C_DOCTYPE where name='Purchase Requisition' and AD_Client_ID!=11; */
ALTER TABLE "COMPIERE"."M_REQUISITION"
ALTER TABLE "M_REQUISITION"
ADD ( "C_DOCTYPE_ID" NUMBER(10,0) DEFAULT 1000017 NOT NULL ) ;
ALTER TABLE "COMPIERE"."M_REQUISITION"
ALTER TABLE "M_REQUISITION"
MODIFY "C_DOCTYPE_ID" NUMBER(10,0) DEFAULT NULL NULL;
ALTER TABLE "COMPIERE"."M_REQUISITION"
ALTER TABLE "M_REQUISITION"
MODIFY "C_DOCTYPE_ID" NUMBER(10,0) NOT NULL;
ALTER TABLE "COMPIERE"."M_REQUISITIONLINE"
ALTER TABLE "M_REQUISITIONLINE"
ADD ( "C_CHARGE_ID" NUMBER(10,0)) ;
ALTER TABLE "COMPIERE"."R_REQUEST"
ALTER TABLE "R_REQUEST"
ADD ( "TASKSTATUS" CHAR(1 BYTE),
"QTYPLAN" NUMBER,
"DATECOMPLETEPLAN" DATE,
@ -769,13 +769,13 @@ ADD ( "DESCRIPTION" NVARCHAR2(255)) ;
"M_FIXCHANGENOTICE_ID" NUMBER(10,0) ) ;
ALTER TABLE "COMPIERE"."R_REQUEST"
ALTER TABLE "R_REQUEST"
ADD CONSTRAINT "MFIXCHANGENOTICE_RREQUEST" FOREIGN KEY ("M_FIXCHANGENOTICE_ID")
REFERENCES "COMPIERE"."M_CHANGENOTICE" ("M_CHANGENOTICE_ID");
REFERENCES "M_CHANGENOTICE" ("M_CHANGENOTICE_ID");
ALTER TABLE "COMPIERE"."R_REQUESTACTION"
ALTER TABLE "R_REQUESTACTION"
ADD ( "TASKSTATUS" CHAR(1 BYTE),
"DATECOMPLETEPLAN" DATE,
"QTYPLAN" NUMBER,
@ -790,30 +790,30 @@ ALTER TABLE "COMPIERE"."R_REQUESTACTION"
/* REPLACE_ME: set 100 to your clients default R_STATUSCATEGORY_ID should be 100 and can be changed later by sql anyway*/
ALTER TABLE "COMPIERE"."R_REQUESTTYPE"
ALTER TABLE "R_REQUESTTYPE"
ADD ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT 100 NOT NULL) ;
ALTER TABLE "COMPIERE"."R_REQUESTTYPE"
ALTER TABLE "R_REQUESTTYPE"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT NULL NULL) ;
ALTER TABLE "COMPIERE"."R_REQUESTTYPE"
ALTER TABLE "R_REQUESTTYPE"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL) ;
/* REPLACE_ME: set 100 to your clients default R_STATUSCATEGORY_ID */
ALTER TABLE "COMPIERE"."R_STATUS"
ALTER TABLE "R_STATUS"
ADD ( "SEQNO" NUMBER(10,0) DEFAULT 0 NOT NULL,
"R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT 100 NOT NULL ) ;
ALTER TABLE "COMPIERE"."R_STATUS"
ALTER TABLE "R_STATUS"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT NULL NULL) ;
ALTER TABLE "COMPIERE"."R_STATUS"
ALTER TABLE "R_STATUS"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL) ;
ALTER TABLE "COMPIERE"."C_BP_GROUP"
ALTER TABLE "C_BP_GROUP"
ADD ( "M_PRICELIST_ID" NUMBER(10,0),
"PO_PRICELIST_ID" NUMBER(10,0),
"M_DISCOUNTSCHEMA_ID" NUMBER(10,0),
@ -822,56 +822,56 @@ ALTER TABLE "COMPIERE"."R_REQUESTACTION"
"PRICEMATCHTOLERANCE" NUMBER);
ALTER TABLE "COMPIERE"."C_BP_GROUP"
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MDISCOUNTSCHEMAPO_CBPGROUP" FOREIGN KEY ("PO_DISCOUNTSCHEMA_ID")
REFERENCES "COMPIERE"."M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
REFERENCES "M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
ALTER TABLE "COMPIERE"."C_BP_GROUP"
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MDISCOUNTSCHEMA_CBPGROUP" FOREIGN KEY ("M_DISCOUNTSCHEMA_ID")
REFERENCES "COMPIERE"."M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
REFERENCES "M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
ALTER TABLE "COMPIERE"."C_BP_GROUP"
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MPRICELISTPO_CBPGROUP" FOREIGN KEY ("PO_PRICELIST_ID")
REFERENCES "COMPIERE"."M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
REFERENCES "M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
ALTER TABLE "COMPIERE"."C_BP_GROUP"
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MPRICELIST_CBPGROUP" FOREIGN KEY ("M_PRICELIST_ID")
REFERENCES "COMPIERE"."M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
REFERENCES "M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
ALTER TABLE "COMPIERE"."C_CHARGE"
ALTER TABLE "C_CHARGE"
ADD ( "C_BPARTNER_ID" NUMBER(10,0));
ALTER TABLE "COMPIERE"."AD_USER"
ALTER TABLE "AD_USER"
ADD ( "CONNECTIONPROFILE" CHAR(1 BYTE)) ;
ALTER TABLE "COMPIERE"."AD_WF_NODE"
ALTER TABLE "AD_WF_NODE"
ADD ( "EMAILRECIPIENT" CHAR(1 BYTE),
"EMAIL" NVARCHAR2(60),
"R_MAILTEXT_ID" NUMBER(10,0)) ;
ALTER TABLE "COMPIERE"."C_ACCTSCHEMA_ELEMENT"
ALTER TABLE "C_ACCTSCHEMA_ELEMENT"
ADD ( "AD_COLUMN_ID" NUMBER(10,0)) ;
ALTER TABLE "COMPIERE"."A_ASSET_GROUP"
ALTER TABLE "A_ASSET_GROUP"
ADD ( "ISTRACKISSUES" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ) ;
ALTER TABLE "COMPIERE"."AD_PRINTPAPER"
ALTER TABLE "AD_PRINTPAPER"
ADD ( "SIZEX" NUMBER DEFAULT NULL,
"SIZEY" NUMBER DEFAULT NULL,
"DIMENSIONUNITS" CHAR(1 BYTE)) ;
ALTER TABLE "COMPIERE"."AD_ROLE"
ALTER TABLE "AD_ROLE"
ADD ( "CONNECTIONPROFILE" CHAR(1 BYTE)) ;
ALTER TABLE "COMPIERE"."AD_SYSTEM"
ALTER TABLE "AD_SYSTEM"
ADD ("ISAUTOERRORREPORT" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL,
"RECORD_ID" NUMBER(10,0),
"SUPPORTEXPDATE" DATE,