Merge pull request #7439 from owncloud/unit-test-for-7430
adding test for migrations on columns using keywords
This commit is contained in:
commit
93b8aba3a1
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue