adding 'smallint unsigned' to type mapping for sqlite

This commit is contained in:
Thomas Müller 2014-09-20 20:06:44 +02:00
parent e55c4bb807
commit 7537d405e3
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class SQLiteMigrator extends Migrator {
protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $connection) {
$platform = $connection->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('tinyint unsigned', 'integer');
$platform->registerDoctrineTypeMapping('smallint unsigned', 'integer');
return parent::getDiff($targetSchema, $connection);
}