summaryrefslogtreecommitdiffstats
path: root/lib/private/db
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix typoRobin Appelman2014-06-031-1/+1
| |
| * Better unique names for temporary tablesRobin Appelman2014-06-032-1/+19
| |
| * Add `generateChangeScript()` backRobin Appelman2014-06-031-0/+9
| |
| * add a getter for the tableRobin Appelman2014-06-031-0/+7
| |
| * Quote identifiers on mysqlRobin Appelman2014-06-032-1/+35
| |
| * Skip migration checks for all sql backends besides mysql, postgres and sqliteRobin Appelman2014-06-033-10/+30
| |
| * Only quote identifiers for oracle during migrationRobin Appelman2014-06-033-26/+58
| |
| * Try and check migration before applying itRobin Appelman2014-06-032-60/+65
| |
| * Check sqlite migration on a copy of the database fileRobin Appelman2014-06-032-0/+41
| |
| * Fix migrator for postgresRobin Appelman2014-06-031-1/+3
| |
| * Fix temporary schema creationRobin Appelman2014-06-031-4/+8
| |
| * Fix generating migration test schemasRobin Appelman2014-06-031-1/+4
| |
| * Create unique names for temporary indexesRobin Appelman2014-06-031-3/+23
| |
| * Add a mechanism to try the database migration on a copy of the tables before ↵Robin Appelman2014-06-032-0/+158
| | | | | | | | running it on the "real" data
* | Merge pull request #8425 from owncloud/columns_should_be_nullable_by_defaultThomas Müller2014-06-031-1/+1
|\ \ | |/ |/| columns should be nullable by default
| * columns should be nullable by defaultJörn Friedrich Dreyer2014-05-011-1/+1
| |
* | - fix dropTable() and introduce tableExists()Thomas Müller2014-05-302-34/+1
| | | | | | | | | | | | | | - kill replaceDB() - this function is unused and it's implementation obviously wrong - add method annotation OC_DB_StatementWrapper::fetchAll - remove duplicate code in Test_DBSchema and reuse OC_DB::tableExists - remove unused variables
* | Merge pull request #8639 from owncloud/drop-briefThomas Müller2014-05-193-8/+8
|\ \ | | | | | | Remove all occurences of @brief and @returns from PHPDoc
| * | Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-193-8/+8
| | | | | | | | | | | | * test case added to avoid adding them later
* | | Merge pull request #6457 from owncloud/db-convert-toolFrank Karlitschek2014-05-192-0/+158
|\ \ \ | |/ / |/| | Command line tool to convert current database to others, except sqlite
| * | fixing typos and adding PHPDocThomas Müller2014-05-121-2/+3
| | |
| * | Add Bart to PgSqlTools copyright.Andreas Fischer2014-04-151-0/+1
| | |
| * | Move PostgreSQL sequence resynchronisation out into PgSqlTools class.Andreas Fischer2014-04-141-0/+39
| | |
| * | Deduplicate connection handling code into \OC\DB\ConnectionFactoryAndreas Fischer2014-03-311-0/+117
| |/
* | Fix all PHPDoc types and variable names, in /libRobin McCorkell2014-05-133-4/+4
| |
* | Squash 'a | b' into 'a|b', in /libRobin McCorkell2014-05-132-2/+2
|/
* adding @method annotation to declare methods which can be called on the ↵Thomas Müller2014-03-281-3/+11
| | | | wrapped statement object
* Allow XML entity loader for MDB2 schema loaderVincent Petry2014-03-031-0/+2
| | | | Forward port of 762b0d9 from stable6 to master
* Also quote old column name during DB migrationVincent Petry2014-02-271-0/+3
| | | | This fixes alter table commands that didn't quote the old column name
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-0/+6
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-182-1/+16
|\ | | | | | | | | Conflicts: lib/private/migration/content.php
| * Merge pull request #6796 from owncloud/statementwrapper-bindparamThomas Müller2014-02-181-0/+14
| |\ | | | | | | Add bindParam to the database statement wrapper
| | * Add bindParam to statement wrapperRobin Appelman2014-01-161-0/+14
| | |
| * | Merge pull request #7176 from owncloud/styleLukas Reschke2014-02-181-1/+2
| |\ \ | | | | | | | | Some style fixes
| | * | Style fixesBart Visscher2014-02-121-1/+2
| | |/
* | | Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-141-0/+3
|\| | | | | | | | | | | | | | Conflicts: lib/private/appconfig.php
| * | Add caching to appconfigRobin Appelman2014-02-071-0/+3
| |/
* / polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-065-5/+11
|/
* Remove OC_DB_StatementWrapper::numRows().Andreas Fischer2013-12-211-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | Using this method will result in an unneccesary extra SQL query (which also may return an incorrect result because the underlying table changed in the meantime). In general: If you are performing an UPDATE, DELETE or equivalent query, OC_DB_StatementWrapper::execute() will already give you the number of "affected rows" via \Doctrine\DBAL\Driver\Statement::rowCount(). This will not work for SELECT queries, however. If you want to know whether a table contains any rows matching your condition, use "SELECT id FROM ... WHERE ... LIMIT 1". If you want to know whether a table contains any rows matching your condition and you also need the data, use "SELECT ... FROM ... WHERE ...", then use one of the fetch() methods. If you want to count the number of rows matching your condition, use use "SELECT COUNT(...) AS number_of_rows FROM ... WHERE ...", then use one of the fetch() methods.
* DB: Support DECIMAL(precision,scale) syntax in XMLOliver Gasser2013-12-171-0/+8
| | | | | | | Add support for specifying the precision and scale of a decimal data type to the XML description language. See owncloud/core#6475
* on mssql the schema migration sometimes fails due to an already existing ↵Thomas Mueller2013-11-261-0/+2
| | | | | | transaction - error: 'New transaction is not allowed because there are other threads running in the session.' The solution is to simple reconnect to the database to start with a fresh connection
* Merge pull request #5789 from ogasser/db_fix_default_for_numericBart Visscher2013-11-151-1/+4
|\ | | | | DB: Set correct default value for numeric types
| * treat numeric as an alias for decimalOliver Gasser2013-11-121-0/+3
| |
| * changed type to decimalOliver Gasser2013-11-121-1/+1
| |
| * DB: Set correct default value for numeric typesOliver Gasser2013-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set 0 as default value for columns with numeric data type instead of the empty string ''. Otherwise the database complains about an invalid default value for this column. To reproduce put the following in your ````appinfo/database.xml````: ```` <field> <name>modified</name> <type>decimal</type> <default/> <notnull>true</notnull> <length>15</length> </field> ```` See owncloud/mozilla_sync#14
* | Don't set a default value when there isn't a default specifiedBart Visscher2013-11-111-1/+1
|/
* Inherit lastInsertId() from Adapter.Andreas Fischer2013-11-041-5/+0
|
* mssql: fixing lastInsertId() implementationThomas Mueller2013-11-021-4/+2
|
* Merge pull request #5458 from owncloud/fixing-5222-masterVicDeo2013-10-232-1/+100
|\ | | | | php 5.3 compatibility regarding OC\DB\Connection fixed
| * add missing file headerThomas Müller2013-10-231-0/+6
| |