Skip to content

Instantly share code, notes, and snippets.

@guilhermeblanco
Created February 14, 2014 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guilhermeblanco/9008847 to your computer and use it in GitHub Desktop.
Save guilhermeblanco/9008847 to your computer and use it in GitHub Desktop.
/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
you should update _getCommonIntegerTypeDeclarationSQL function and make it look like
===
protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef)
{
if ( ! empty($columnDef['autoincrement'])) {
return '';
}
return ! empty($columnDef['unsigned']) ? ' UNSIGNED' : '';
}
===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment