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();
|
$platform = $this->conn->getDatabasePlatform();
|
||||||
foreach($schemaDiff->changedTables as $tableDiff) {
|
foreach($schemaDiff->changedTables as $tableDiff) {
|
||||||
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
|
$tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
|
||||||
|
foreach($tableDiff->changedColumns as $column) {
|
||||||
|
$column->oldColumnName = $platform->quoteIdentifier($column->oldColumnName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($generateSql) {
|
if ($generateSql) {
|
||||||
|
|
|
@ -223,4 +223,19 @@
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</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>
|
</database>
|
||||||
|
|
|
@ -119,4 +119,19 @@
|
||||||
</declaration>
|
</declaration>
|
||||||
</table>
|
</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>
|
</database>
|
||||||
|
|
Loading…
Reference in New Issue