Fix wrong migration scripts

This commit is contained in:
Carlos Ruiz 2008-12-09 00:35:46 +00:00
parent 732b21a43f
commit 04e7862a1b
4 changed files with 26 additions and 33 deletions

View File

@ -31,13 +31,13 @@ ALTER TABLE pp_wf_node_asset
ALTER TABLE pp_wf_node_asset ALTER TABLE pp_wf_node_asset
ADD CONSTRAINT adwfnode_ppwfnodeasset ADD CONSTRAINT adwfnode_ppwfnodeasset
FOREIGN KEY(ad_wf_node_id) FOREIGN KEY(ad_wf_node_id)
REFERENCES adempiere.ad_wf_node(ad_wf_node_id) REFERENCES ad_wf_node(ad_wf_node_id)
; ;
ALTER TABLE adempiere.pp_wf_node_asset ALTER TABLE pp_wf_node_asset
ADD CONSTRAINT aasset_ppwfnodeasset ADD CONSTRAINT aasset_ppwfnodeasset
FOREIGN KEY(a_asset_id) FOREIGN KEY(a_asset_id)
REFERENCES adempiere.a_asset(a_asset_id) REFERENCES a_asset(a_asset_id)
; ;
-- 29.08.2008 18:32:06 EEST -- 29.08.2008 18:32:06 EEST

View File

@ -140,12 +140,6 @@ updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52468 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52468 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.delete.price.on.pricelist', 'Delete Price On Price List', ' ', 'I', 'D'); 'smenu.delete.price.on.pricelist', 'Delete Price On Price List', ' ', 'I', 'D');
INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52469 , 0, 0, 'Y', TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-04-25 14:30:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.organisation', 'Organisation', ' ', 'I', 'D');
-- 1.6/postgresql/003_C_Currency.sql -- 1.6/postgresql/003_C_Currency.sql
----------------------------- -----------------------------
@ -1072,91 +1066,91 @@ updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52472 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52472 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'csv', 'CSV', ' ', 'I', 'D'); 'csv', 'CSV', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52473 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52473 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.sales.report', 'Sales Report', ' ', 'I', 'D'); 'smenu.sales.report', 'Sales Report', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52474 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52474 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.best.selling.items', 'Best Selling Items', ' ', 'I', 'D'); 'smenu.best.selling.items', 'Best Selling Items', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52475 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52475 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.stock.sales.report', 'Stock Sales Report', ' ', 'I', 'D'); 'smenu.stock.sales.report', 'Stock Sales Report', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52476 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52476 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.transfer.stock', 'Stock Transfer', ' ', 'I', 'D'); 'smenu.transfer.stock', 'Stock Transfer', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52477 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52477 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.inventory.move', 'Inventory Move', ' ', 'I', 'D'); 'smenu.inventory.move', 'Inventory Move', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52478 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52478 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.move.confirmation', 'Move Confirmation', ' ', 'I', 'D'); 'smenu.move.confirmation', 'Move Confirmation', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52479 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52479 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'smenu.barcode.printing', 'Barcode Printing', ' ', 'I', 'D'); 'smenu.barcode.printing', 'Barcode Printing', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52480 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52480 , 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'basePriceList', 'Base Price List', ' ', 'I', 'D'); 'basePriceList', 'Base Price List', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52481, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52481, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'isDeleteOldRecords', 'Delete Old Records', ' ', 'I', 'D'); 'isDeleteOldRecords', 'Delete Old Records', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52482, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52482, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'sales.price.list', 'Sales Price List', ' ', 'I', 'D'); 'sales.price.list', 'Sales Price List', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52483, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52483, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'purchase.price.list', 'Purchase Price List', ' ', 'I', 'D'); 'purchase.price.list', 'Purchase Price List', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52484, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52484, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'pos.terminal', 'Terminal', ' ', 'I', 'D'); 'pos.terminal', 'Terminal', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52485, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52485, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'pos.version', 'Version', ' ', 'I', 'D'); 'pos.version', 'Version', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52486, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52486, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,
'pmenu.new.reports', 'Reports', ' ', 'I', 'D'); 'pmenu.new.reports', 'Reports', ' ', 'I', 'D');
INSERT INTO adempiere.AD_MESSAGE INSERT INTO AD_MESSAGE
(ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby, (ad_message_id, ad_client_id, ad_org_id, isactive, created, createdby,
updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype) updated, updatedby, VALUE, msgtext, msgtip, msgtype, entitytype)
VALUES(52487, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, VALUES(52487, 0, 0, 'Y', TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2008-06-20 10:40:00','YYYY-MM-DD HH24:MI:SS'), 100,

View File

@ -1,4 +1,4 @@
-- Dez 02, 2008 12:27:12 PM ECT -- Dez 02, 2008 12:27:12 PM ECT
-- fix Region Alaksa -- fix Region Alaska
update c_region set Description='Alaska',Updated=TO_DATE('2008-12-02 12:27:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 where c_region_id=118 update c_region set Description='Alaska',Updated=TO_DATE('2008-12-02 12:27:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 where c_region_id=118
; ;

View File

@ -38,8 +38,7 @@ begin
WHEN v_Saturday THEN 2 WHEN v_Saturday THEN 2
WHEN v_Sunday THEN 1 WHEN v_Sunday THEN 1
ELSE 0 ELSE 0
END INTO v_offset END INTO v_offset;
FROM adempiere.test;
v_nextDate := v_nextDate + v_offset::integer; v_nextDate := v_nextDate + v_offset::integer;
v_isHoliday := false; v_isHoliday := false;
FOR nbd IN SELECT * FOR nbd IN SELECT *