owncloud/core — pull request #4027 by butonic (2013-07-11 13:07:39+00:00)
Title: Why do the db tests explode when I force a schema update

# DO NOT MERGE THIS YET!

Updating the schema with the current one should not change anything, yet it fails badly and even breaks subsequent tests.

I only added a test method that will force a schema update. That causes MDB2 to fetch the schema from the DB, compare it to the one in `db_structure.xml` and execute any necessary updates. This mechanism seems more fragile than we think.

@bartv2 could you test this with doctrine?

@icewind1991 the filecache tests seem to insert rows missing `storage_mtime` and `unencrypted_size` which are defined as
```xml

storage_mtime
integer

true
4

unencrypted_size
integer

true
8

```

I don't know why that only shows up after forcing a db schema update. In any case these definitions will not work on oracle because it treats '' as null. using `` in combination with `true` is simply wrong.