Commit graph

23820 commits

Author SHA1 Message Date
Joas Schilling
d49ed65265
fixup! I have no idea what I'm doing 2024-07-09 13:52:20 +02:00
Joas Schilling
61f3289a96
I have no idea what I'm doing
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-09 13:00:13 +02:00
Joas Schilling
2257ecb36b
Try to workaround oracles primary key
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-09 11:59:07 +02:00
Joas Schilling
7df4bb7b01
debug connection
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-05 12:24:50 +02:00
Joas Schilling
0b2357f7f8
Test oracle
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:41:15 +02:00
Joas Schilling
5fdc5d5011
fix(db)!: Too few arguments to function Doctrine\DBAL\Query\Expression\ExpressionBuilder::or(), 0 passed and atleast 1 expected
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:53 +02:00
Joas Schilling
f0348be4c8
fix(db): Replace more Platform usages
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:50 +02:00
Joas Schilling
4c80fdd2bd
fix(db): Adjust unit tests of query builder
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:49 +02:00
Joas Schilling
8153c38efe
fix(db): Don't set null as type
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:48 +02:00
Joas Schilling
de5a7c3c73
fix(db)!: Reimplement the query logger with a doctrine middleware
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:47 +02:00
Joas Schilling
1370693133
fix(db): Remove usage of Platforms
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:47 +02:00
Joas Schilling
6b2f1367cd
fix(db): Map parameter types to doctrine's enums
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:46 +02:00
Joas Schilling
98b6c7c48a
fix(db): Add a hint that we return PHP_INT_MAX
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:46 +02:00
Joas Schilling
66aac18bad
fix(db)!: OCP\DB\IPreparedStatement::bindParam() is deprecated and calls bindValue() internally
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:45 +02:00
Joas Schilling
715656927c
fix(db): Argument 2 of \Doctrine\DBAL\Platforms\AbstractPlatform::getBitAndComparisonExpression expects string
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:45 +02:00
Joas Schilling
bae31bfa7b
fix(db): Method \Doctrine\DBAL\Platforms\AbstractPlatform::getIdentifierQuoteCharacter() does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:45 +02:00
Joas Schilling
926f2ab887
fix(db): Too many arguments for method \Doctrine\DBAL\Connection::quote() - saw 2
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:44 +02:00
Joas Schilling
60217aac39
fix(db): No longer return result of Connection::connect()
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:44 +02:00
Joas Schilling
df7d088653
fix(db)!: Deprecate getDatabasePlatform which leaks 3rdparty
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:43 +02:00
Joas Schilling
e8ef23d052
fix(db): Too few arguments for Doctrine\DBAL\Driver::getDatabasePlatform - expecting versionProvider to be passed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:43 +02:00
Joas Schilling
5823d58d30
fix(db)!: Doctrine\DBAL\Platforms\MySQL80Platform requires the length of a VARCHAR column to be specified
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:43 +02:00
Joas Schilling
55a8f33873
fix(db): Doctrine Event Manager is removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:42 +02:00
Joas Schilling
2b83016a2b
fix(db): TooManyArguments: Too many arguments for method Doctrine\DBAL\Statement::executeQuery()
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:42 +02:00
Joas Schilling
4bbaae5798
fix(db): ExpressionBuilder::like expects string, but OCP\DB\QueryBuilder\IQueryFunction provided
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:41 +02:00
Joas Schilling
6e90ddf41a
fix(db): Doctrine\DBAL\Query\Expression\CompositeExpression::add* does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:40 +02:00
Joas Schilling
ec1a3d6cd3
fix(db): Doctrine\DBAL\Query\QueryBuilder::getState does not exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:39 +02:00
Joas Schilling
4c1003122d
fix(db): Doctrine\DBAL\Schema\Schema::getTableNames() was removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:38 +02:00
Joas Schilling
165443046a
fix(db): Interface Doctrine\DBAL\Exception cannot be instantiated
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:37 +02:00
Joas Schilling
c6cd20ea8a
fix(db)!: Doctrine\DBAL\FetchMode was removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:37 +02:00
Joas Schilling
f6ac69a2a0
fix(db)!: Doctrine\DBAL\Platforms\PostgreSQL94Platform was removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:36 +02:00
Joas Schilling
d9e69e14f3
fix(db)!: Table alias for DELETE and UPDATE no longer supported
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:36 +02:00
Joas Schilling
2d27a32870
fix(db): InaccessibleMethod: Cannot access private method Doctrine\DBAL\Statement::execute from context OC\DB\PreparedStatement
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:36 +02:00
Joas Schilling
fb3d4d579f
fix(db): Don't use removed/deprecated methods in setup
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:35 +02:00
Joas Schilling
f45ac5bb68
fix(db): Doctrine\DBAL\Query\Expression\ExpressionBuilder::andX() and ::orX() were removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:34 +02:00
Joas Schilling
3c5acbcb1a
fix(db): Doctrine\DBAL\Connection::executeUpdate() was removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:33 +02:00
Joas Schilling
287d5271e0
fix(db)!: Doctrine\DBAL\Connection::getSchemaManager was removed, use Connection::createSchemaManager instead
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:33 +02:00
Joas Schilling
466f455e93
fix(db)!: Doctrine\DBAL\Schema\Table::hasPrimaryKey() was removed, use Table::getPrimaryKey` instead.
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:32 +02:00
Joas Schilling
f6f53a8ca8
fix(db)!: Doctrine\DBAL\Types\Type::getName() was removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:31 +02:00
Joas Schilling
e6e1bd8b93
fix(db): Fix internal calls to doctrine's fetch functions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:31 +02:00
Joas Schilling
648b20c588
fix(db)!: Manually track the query type and whether WHERE is empty
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:30 +02:00
Joas Schilling
76ef7dd71e
fix(db): Remove usage of dropped doctrine event manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:30 +02:00
Joas Schilling
6d0e8e4606
fix(db): Use new function name to get the schema
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:29 +02:00
Joas Schilling
72886c0bfb
fix(db): Make sure setComment() is only called with strings
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:29 +02:00
Joas Schilling
de0141d83c
fix(db)!: Empty and adjust query-part related methods
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:29 +02:00
Joas Schilling
a5432e3c69
fix(db): Adjust Connection signature to updated doctrine one
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:28 +02:00
Joas Schilling
015a3e85fe
fix(db)!: Fix casing of doctrine's SQLitePlatform
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-04 14:19:28 +02:00
Joas Schilling
bd7b09a709
Merge pull request #46251 from nextcloud/feat/taskprocessing-more-tasktypes
feat(TaskProcessing): Add more task types
2024-07-04 14:02:02 +02:00
Marcel Klehr
03d71e859c
Merge pull request #46286 from nextcloud/fix/tp/sync-bg-job-status
fix(TaskProcessing): Set task status to running when processing via ISynchronousProvider
2024-07-04 12:53:54 +02:00
John Molakvoæ
8cb0f1a3ae
Merge pull request #46174 from nextcloud/fix/integrity-check
fix(IntegrityCheck): Ensure the check is run if no results are available
2024-07-04 10:39:38 +02:00
Marcel Klehr
d9cf6e61c8 feat(TaskProcessing): Add more task types
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2024-07-04 10:10:23 +02:00