Jan Böhmer
d6ff22fc44
Show in server info page which natural sorting method is used
...
This should ease debugging
2024-07-28 14:13:34 +02:00
Jan Böhmer
19e5d302f4
Fixed detection on mariadb natsort capabilities on distributions which use the 5.5.5- prefix for MariaDB version
2024-06-23 21:13:37 +02:00
Jan Böhmer
235d572f8c
Use DatetimeImmutable instead of DateTime wherever possible
2024-06-22 17:36:54 +02:00
Jan Böhmer
20f32c7f12
Applied rector suggestions
2024-06-22 00:31:43 +02:00
Jan Böhmer
123372d93f
Allow to emulate natural sort on mysql platforms
2024-06-18 21:42:00 +02:00
Jan Böhmer
272fe0516b
Allow to emulate natural sorting on SQLite databases
2024-06-18 00:09:44 +02:00
Jan Böhmer
289c9126d0
Use Natural_SORT_KEY for natural sorting on MariaDB database which support that
...
This resolves issue #243 and #402
2024-06-17 23:29:38 +02:00
Jan Böhmer
0a482da93e
Use postgres native array_position function instead of our FIELD function and pass it as array literal instead of variadic function
...
Otherwise we will run into errors, that we can not give more than 100 arguments to a function
2024-06-17 23:13:04 +02:00
Jan Böhmer
8bb8118d9f
Use natural sorting for trees and others repository functions
2024-06-17 22:33:40 +02:00
Jan Böhmer
9db822eabd
Use natural sorting for string datatables columns when using postgres
...
The natural sorting solution is quite portable, so this should be possible for other database types too later
2024-06-17 21:38:16 +02:00
Jan Böhmer
8a42dfa154
Use the FIELD function on postgres for order by field value
2024-06-17 21:20:23 +02:00
Jan Böhmer
4f75e2641b
Define a custom FIELD function to sort tables by list of ids without the emulation via string operations
2024-06-16 23:46:40 +02:00
Jan Böhmer
6e9b337b49
Fixed regex function for postgres
2024-06-13 23:18:25 +02:00
Jan Böhmer
8ee3aaf4f4
Added Sqlite migrations required by new doctrine/orm version and fixed migration duplication for sqlite
2024-06-10 21:54:15 +02:00
Jan Böhmer
427b8659c9
Added MySQL migrations required by the doctrine upgrades
...
The new ORM versions, do not have anymore column comments, so these got removed
2024-06-10 21:43:25 +02:00
Jan Böhmer
d40ce470d3
Fixed some invalid class constant use in ResetAutoIncrementORMPurger
2024-06-10 21:25:51 +02:00
Jan Böhmer
fe732ecf45
Fixed minor inspection issue
2024-06-10 21:16:46 +02:00
Jan Böhmer
971bb92a8c
Fixed error caused by ArrayType fields which is required by the webauthn bundle but was removed in doctrine/orm 4.0
...
We simple forward port the ArrayType class from orm 3.8 to fix this error
2024-06-10 21:11:11 +02:00
Jan Böhmer
4d927c5870
Use a better exception format for UTCDateTimeType
2024-06-10 20:17:57 +02:00
Jan Böhmer
bd640c19a4
Fixed type of token object is now a property instead of array value in Field2
2024-06-09 23:55:12 +02:00
Jan Böhmer
0d445b6a21
Fixed some minor inspection issues caused by the doctrine upgrades
2024-06-09 23:51:41 +02:00
Jan Böhmer
60325e797d
Fixed the use of the removed ClassMetadataInfo constants
2024-06-09 23:45:22 +02:00
Jan Böhmer
7d9be5ae76
Fixed wrong casing of SQLitePlatform
2024-06-09 23:36:00 +02:00
Jan Böhmer
777bfed813
Fixed doctrine middlewares
...
We now look directly onto the driver arguments instead of retrieving a database platform, for which we would need the database version.
As we modify driver specific options there, this might be the better choice anyway
2024-06-09 23:28:46 +02:00
Jan Böhmer
43ca543651
Fixed wrong signature of UTCDateTimeType
2024-06-09 23:15:14 +02:00
Jan Böhmer
d202ecf06f
Added support of the custom TinyInt type for postgres
2024-06-06 22:38:33 +02:00
Jan Böhmer
d49bb1f4b5
Removed unused import statements
2024-03-03 20:34:36 +01:00
Jan Böhmer
42e604245c
Fixed some inspection issues
2024-03-03 19:57:31 +01:00
Jan Böhmer
3798217abc
Use PDO constant instead of magic number in SetSQLModeMiddleware
2023-12-10 00:37:58 +01:00
Jan Böhmer
57423436ce
Added options to use MySQL connection via SSL
2023-12-10 00:36:29 +01:00
Jan Böhmer
fdf52a59fe
Fixed error in sqlite regex implementation in certain edge cases
2023-12-05 23:51:54 +01:00
Jan Böhmer
dd0f8ec97c
Implement the SQLite extension for doctrine via a middleware instead of an deprecated event listener
2023-12-05 23:50:07 +01:00
Jan Böhmer
8b8079a6f1
Fixed deprecations
2023-12-05 21:55:20 +01:00
Jan Böhmer
5faeb5dd56
Fixed problem with loading Fixtures on MySQL in combination with savepoints
...
We must now load the fixtures using custom command partdb:fixtures:load
2023-12-05 21:33:29 +01:00
Jan Böhmer
de8a68c70d
Expliticly declare a conversion from the custom TinyInt doctrine type to int
...
This hopefully fixes issue #434
2023-11-19 21:03:43 +01:00
Jan Böhmer
294f7cf005
Fixed some deprecations related to missing return types
2023-10-25 17:27:37 +02:00
Jan Böhmer
11be65678e
Fixed order by FIELD emulation on sqlite via INSTR
...
We need to search for the comma token separators at both ends of the search term, otherwise the ordering will be wrong.
2023-07-29 17:06:35 +02:00
Jan Böhmer
80ed064cd6
Emulate the field function in SQLIte by using an string search, instead of our PHP function callback
2023-07-29 16:50:47 +02:00
Jan Böhmer
62b1e33616
Fixed field ordering on SQLite
2023-07-29 16:42:27 +02:00
Jan Böhmer
5c30210534
Fixed some stuff on the emulated Field2 function and added tests
2023-07-27 00:38:17 +02:00
Jan Böhmer
1d03b6c38d
Added tests for sqlite emulated functions
2023-07-26 23:39:53 +02:00
Jan Böhmer
d3ead8742e
Implement a special field2 function, to migitiate the argument count limit in sqlite
...
This fixes issue #332 on SQLite DBs
2023-07-26 23:23:25 +02:00
Jan Böhmer
1de1eebc59
Fixed PHPstan issues
2023-07-23 01:20:38 +02:00
Jan Böhmer
a4d411656b
Added a field extension for SQLite and let the database sort the elements by the given ID order directly
2023-07-23 01:19:48 +02:00
Jan Böhmer
5a1fa409d8
Do not try to reset autoincrement of sqlite test DB as this somehow cause trouble with loading fixtures...
2023-06-20 02:02:23 +02:00
Jan Böhmer
4977f6c270
Reset autoincrements on SQLite with our ResetAutoIncrementPurger too and make it default for fixtures load
2023-06-18 22:06:06 +02:00
Jan Böhmer
b7c8ca2a48
Improved typing and phpdoc type annotations
2023-06-18 15:37:42 +02:00
Jan Böhmer
e8771ea118
Fixed some more phpstan issues
2023-06-18 00:00:58 +02:00
Jan Böhmer
71cd4057a7
Use enums for LabelOptions
2023-06-12 23:39:30 +02:00
Jan Böhmer
6a2ff9d153
Added declare strict types to all files
2023-06-11 18:59:07 +02:00