Merge pull request #7439 from owncloud/unit-test-for-7430

adding test for migrations on columns using keywords
This commit is contained in:
Thomas Müller 2014-02-27 21:52:46 +01:00
commit 93b8aba3a1
3 changed files with 33 additions and 0 deletions

View File

@ -82,6 +82,9 @@ class MDB2SchemaManager {
$platform = $this->conn->getDatabasePlatform();
foreach($schemaDiff->changedTables as $tableDiff) {
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
foreach($tableDiff->changedColumns as $column) {
$column->oldColumnName = $platform->quoteIdentifier($column->oldColumnName);
}
}
if ($generateSql) {

View File

@ -223,4 +223,19 @@
</declaration>
</table>
<table>
<name>*dbprefix*migratekeyword</name>
<declaration>
<field>
<name>select</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
</table>
</database>

View File

@ -119,4 +119,19 @@
</declaration>
</table>
<table>
<name>*dbprefix*migratekeyword</name>
<declaration>
<field>
<name>select</name>
<type>text</type>
<default></default>
<notnull>false</notnull>
<length>255</length>
</field>
</declaration>
</table>
</database>