framework load order????
framework load order????
- Subject: framework load order????
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 23 Feb 2015 18:09:53 -0500
How can I ensure that ERCoreBusinessLogic is loaded BEFORE my framework. I ordered the frameworks and put the ERCBL on top, ahead of my framework, but still no joy. I need to run some SQL against the ERCBL:
ERXJDBCUtilities.executeUpdate(database.adaptorChannel(), "ALTER TABLE ERCAuditTrail DROP COLUMN is_deleted");
ERXJDBCUtilities.executeUpdate(database.adaptorChannel(), "ALTER TABLE ERCAuditTrail ADD COLUMN is_deleted boolean not null");
I want to put this in a migration and run it AFTER ERCBL’s migrations are run.
Or is there someplace else I can put this?
Actually, is this something I should put into a pull request. if I don’t make this change, I will get:
com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: <com.webobjects.jdbcadaptor.PostgresqlExpression: "INSERT INTO ERCAuditTrail(GID, id, IS_DELETED) VALUES (?::varchar(255), ?::int4, ?::bool)" withBindings: 1:_EOIntegralKeyGlobalID[EventBook (java.lang.Integer)19](gid), 2:1(id), 3:false(isDeleted)>: Next exception:SQL State:42804 -- error code: 0 -- msg: ERROR: column "is_deleted" is of type integer but expression is of type boolean Hint: You will need to rewrite or cast the expression. Position: 84 Next exception:SQL Warning:00000 -- error code: 0 -- msg: parse <unnamed>: SHOW TRANSACTION ISOLATION LEVEL Next exception:SQL Warning:00000 -- error code: 0 -- msg: bind <unnamed> to <unnamed> Next exception:SQL Warning:00000 -- error code: 0 -- msg: execute <unnamed>:
anyone else have this problem?
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden