Repository navigation
Closed
Description
Basically #9806. Now for migrations only.
Steps to reproduce
- Install OC with MySQL
- Execute
CREATE TABLEoc__enum_bit_test5kBmyPCe0uejl(bbit(1) DEFAULT NULL,eenum('1','2','3','4') COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin - Create a
ISchemaMigrationfor any app, bump app version - php occ upgrade
Expected behaviour
upgrade
Actual behaviour
2017-10-16T17:04:18+00:00 Doctrine\DBAL\DBALException: Unknown database type bit requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.
2017-10-16T17:04:18+00:00 Update failed
Server configuration
Database:
mysql-community-server-5.6.37
ownCloud version: (see ownCloud admin page)
master
Where did you install ownCloud from:
git
{"reqId":"ag43VC4s1MjXyv6d29EM","level":3,"time":"2017-10-16T16:10:00+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {"Exception":"Doctrine\DBAL\DBALException","Message":"Unknown database type bit requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.","Code":0,"Trace":"
#0 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php(126): Doctrine\DBAL\Platforms\AbstractPlatform->getDoctrineTypeMapping('bit')
#1 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(820): Doctrine\DBAL\Schema\MySqlSchemaManager->_getPortableTableColumnDefinition(Array)
#2 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(175): Doctrine\DBAL\Schema\AbstractSchemaManager->_getPortableTableColumnList('oc__enum_bit_te...', 'octmp_mysql', Array)
#3 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(281): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableColumns('oc__enum_bit_te...')
#4 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(268): Doctrine\DBAL\Schema\AbstractSchemaManager->listTableDetails('oc__enum_bit_te...')
#5 /lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(1040): Doctrine\DBAL\Schema\AbstractSchemaManager->listTables()
#6 /lib/private/DB/Migrator.php(139): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema()
#7 /lib/private/DB/Connection.php(413): OC\DB\Migrator->createSchema()
#8 /lib/private/DB/MigrationService.php(400): OC\DB\Connection->createSchema()
#9 /lib/private/DB/MigrationService.php(358): OC\DB\MigrationService->executeStep(20170927201245)
#10 /lib/private/legacy/app.php(1074): OC\DB\MigrationService->migrate()
#11 /lib/private/Updater.php(307): OC_App::updateApp('dav')
#12 /lib/private/Updater.php(233): OC\Updater->doAppUpgrade()
#13 /lib/private/Updater.php(108): OC\Updater->doUpgrade('10.0.3.3', '10.0.3.3')
#14 /core/Command/Upgrade.php(254): OC\Updater->upgrade()
#15 /lib/composer/symfony/console/Command/Command.php(264): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /lib/composer/symfony/console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /lib/composer/symfony/console/Application.php(228): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /lib/composer/symfony/console/Application.php(130): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /lib/private/Console/Application.php(162): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /console.php(106): OC\Console\Application->run()
#21 /occ(11): require_once('/home/deo/publi...')
#22 {main}","File":"/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php","Line":423}"}
Activity
lock commentedon Jul 30, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.