diff --git a/migration/352a-trunk/postgresql/287_BF2091231.sql b/migration/352a-trunk/postgresql/287_BF2091231.sql index 3c6e98cbd4..1aaf15d66f 100644 --- a/migration/352a-trunk/postgresql/287_BF2091231.sql +++ b/migration/352a-trunk/postgresql/287_BF2091231.sql @@ -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 diff --git a/migration/352a-trunk/postgresql/311_PosteritaWebPOS_173.sql b/migration/352a-trunk/postgresql/311_PosteritaWebPOS_173.sql index bd457a039f..55a000e26a 100644 --- a/migration/352a-trunk/postgresql/311_PosteritaWebPOS_173.sql +++ b/migration/352a-trunk/postgresql/311_PosteritaWebPOS_173.sql @@ -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, @@ -1348,4 +1342,4 @@ UPDATE AD_Tab SET WhereClause=NULL,Updated=now(),UpdatedBy=100 WHERE AD_Tab_ID=3 -- x.x.x/postgresql/ ------------------------------ \ No newline at end of file +----------------------------- diff --git a/migration/352a-trunk/postgresql/338_BF2374272.sql b/migration/352a-trunk/postgresql/338_BF2374272.sql index f19d91148d..3d9932189c 100644 --- a/migration/352a-trunk/postgresql/338_BF2374272.sql +++ b/migration/352a-trunk/postgresql/338_BF2374272.sql @@ -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 ; diff --git a/migration/352a-trunk/postgresql/343_nextBusinessDay.sql b/migration/352a-trunk/postgresql/343_nextBusinessDay.sql index 25c308b526..1f54056599 100644 --- a/migration/352a-trunk/postgresql/343_nextBusinessDay.sql +++ b/migration/352a-trunk/postgresql/343_nextBusinessDay.sql @@ -19,9 +19,9 @@ $BODY$ * *You should have received a copy of the GNU General Public License *along with this program; if not, write to the Free Software -*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of -* -* Converted to PostgreSQL by Tony Snook, +*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of +* +* Converted to PostgreSQL by Tony Snook, * tspc@dodo.com.au */ DECLARE @@ -38,11 +38,10 @@ 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 * + FOR nbd IN SELECT * FROM C_NonBusinessDay WHERE AD_Client_ID=p_AD_Client_ID and IsActive ='Y' and Date1 >= v_nextDate ORDER BY Date1 @@ -58,5 +57,5 @@ begin end; $BODY$ LANGUAGE 'plpgsql' VOLATILE; - + ALTER FUNCTION nextbusinessday(timestamp with time zone, numeric) OWNER TO adempiere;