Changeset 7042


Ignore:
Timestamp:
Dec 11, 2015, 11:24:50 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

Reference #1966: The user that delete an item should see the item in the trashcan

Only call testTransactions() when the verifySchemaVersion is set since the test may fail when the database schema is not yet up to date. For example, the 'removed' column should be dropped later but still exists when trying to insert a News item:

Exception when starting...
net.sf.basedb.core.BaseException: could not execute statement
  at net.sf.basedb.core.HibernateUtil.saveData(HibernateUtil.java:1420)
  at net.sf.basedb.core.HibernateUtil.testTransactions(HibernateUtil.java:2080)
....
Caused by: java.sql.SQLException: Field 'removed' doesn't have a default value
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:998)
....
File:
1 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.