Skip to content
Snippets Groups Projects
Commit 93b8aba3 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

adding test for migrations on columns using keywords
parents e3048096 22adc397
No related branches found
No related tags found
No related merge requests found
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment