Fix wrong migration scripts
This commit is contained in:
parent
732b21a43f
commit
04e7862a1b
|
@ -31,13 +31,13 @@ ALTER TABLE pp_wf_node_asset
|
|||
ALTER TABLE pp_wf_node_asset
|
||||
ADD CONSTRAINT adwfnode_ppwfnodeasset
|
||||
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
|
||||
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
|
||||
|
|
|
@ -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,
|
||||
'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
|
||||
-----------------------------
|
||||
|
@ -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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
'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,
|
||||
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,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-- 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
|
||||
;
|
||||
|
|
|
@ -38,8 +38,7 @@ begin
|
|||
WHEN v_Saturday THEN 2
|
||||
WHEN v_Sunday THEN 1
|
||||
ELSE 0
|
||||
END INTO v_offset
|
||||
FROM adempiere.test;
|
||||
END INTO v_offset;
|
||||
v_nextDate := v_nextDate + v_offset::integer;
|
||||
v_isHoliday := false;
|
||||
FOR nbd IN SELECT *
|
||||
|
|
Loading…
Reference in New Issue