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

adding test for migrations on columns using keywords
remotes/origin/ldap_group_count
Thomas Müller 11 years ago
commit 93b8aba3a1
  1. 3
      lib/private/db/mdb2schemamanager.php
  2. 15
      tests/data/db_structure.xml
  3. 15
      tests/data/db_structure2.xml

@ -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…
Cancel
Save