diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-05-13 21:45:07 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-05-14 12:24:43 +0200 |
commit | d11caf1a3a9c230f893857f5fd6e2e64f820d823 (patch) | |
tree | 8760006a06eebbc18de28dbca21934c567952f70 /lib/private/DB/OCSqlitePlatform.php | |
parent | b50a11d8523ff9361442466a3aadeef5063f6bb5 (diff) | |
download | nextcloud-server-d11caf1a3a9c230f893857f5fd6e2e64f820d823.tar.gz nextcloud-server-d11caf1a3a9c230f893857f5fd6e2e64f820d823.zip |
No need for platform hacks anymore
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/DB/OCSqlitePlatform.php')
-rw-r--r-- | lib/private/DB/OCSqlitePlatform.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/private/DB/OCSqlitePlatform.php b/lib/private/DB/OCSqlitePlatform.php index 9fcd8038f4f..0ffe7a3e04c 100644 --- a/lib/private/DB/OCSqlitePlatform.php +++ b/lib/private/DB/OCSqlitePlatform.php @@ -23,27 +23,5 @@ namespace OC\DB; class OCSqlitePlatform extends \Doctrine\DBAL\Platforms\SqlitePlatform { - /** - * {@inheritDoc} - */ - public function getColumnDeclarationSQL($name, array $field) { - $def = parent::getColumnDeclarationSQL($name, $field); - if (!empty($field['autoincrement'])) { - $def .= ' PRIMARY KEY AUTOINCREMENT'; - } - return $def; - } - /** - * {@inheritDoc} - */ - protected function _getCreateTableSQL($name, array $columns, array $options = array()){ - // if auto increment is set the column is already defined as primary key - foreach ($columns as $column) { - if (!empty($column['autoincrement'])) { - $options['primary'] = null; - } - } - return parent::_getCreateTableSQL($name, $columns, $options); - } } |