45 Commits

Author SHA1 Message Date
Pierre Noël
0c76c5ae1a add error management 2022-11-18 23:57:46 +01:00
Pierre Noël
952a05514f use knex arguments when dropping the temporary table 2022-11-16 18:36:07 +01:00
Pierre Noël
eba2da51af refactor the way database version is fetched 2022-11-16 18:32:32 +01:00
Pierre Noël
6103e4de1f
Merge branch 'main' into fix/relation-mysql-below-8 2022-11-16 15:26:47 +01:00
Jamie Howard
04295573f1 chore(entity-manager): revert to not handle multiple pg schemas 2022-11-16 11:22:22 +00:00
Pierre Noël
5e5d1c92c2 use getDatabaseInformation instead of databaseInformation 2022-11-16 10:58:28 +01:00
Jamie Howard
4b1f8101e6 fix(entity-manager): use db.connection for .raw()
chore(database): revert getConnection()
2022-11-16 09:34:08 +00:00
Pierre Noël
306d5c4abc finally drop temp table 2022-11-15 18:57:13 +01:00
Pierre Noël
e2234ed9f1 use connection instead of getConnection 2022-11-15 18:42:18 +01:00
Pierre Noël
887ea1ae59 Avoid use of window functions for MySQL versions below 8 2022-11-15 16:43:04 +01:00
Jamie Howard
5553538c18 chore 2022-11-15 13:37:18 +00:00
Jamie Howard
0f7eb70fd2 fix(database): refactor getConnection to not use schemas 2022-11-15 13:28:35 +00:00
Jamie Howard
cad6a8da1c fix(entity-manager): knex withSchema.raw error 2022-11-14 16:39:57 +00:00
Pierre Noël
05c93d44c5 add content api tests for connect relation format 2022-10-24 11:09:01 +02:00
Pierre Noël
95f3abfa6b remove TODO comments 2022-10-07 15:42:48 +02:00
Pierre Noël
6e67d82f5f add transaction in DB entity manager 2022-10-06 18:03:10 +02:00
Pierre Noël
a17b3a0ba2 add and use loadPages 2022-10-03 17:52:12 +02:00
Marc-Roig
9edb46c310 check if set is empty 2022-09-30 10:54:44 +02:00
Pierre Noël
3e60852fa0 fix partial update delete 2022-09-30 10:54:44 +02:00
Pierre Noël
bf16d07463 throw when deletePreviousAnyToOneRelations and deletePreviousOneToAnyRelations are called for non compatible relations 2022-09-30 10:54:43 +02:00
Pierre Noël
8248458a1f fix cleanOrder query for mysql 2022-09-30 10:54:43 +02:00
Pierre Noël
8e5543b21d fix cleanOrder + use hasOrderColumn and hasInverseOrderColumn 2022-09-30 10:54:41 +02:00
Pierre Noël
a56879e12b implement cleanOrder function 2022-09-30 10:54:41 +02:00
Pierre Noël
9830910312 fix morphToMany order 2022-09-30 10:54:40 +02:00
Pierre Noël
eb8d79e0c8 restructure updateRelations - connect 2022-09-30 10:54:40 +02:00
Pierre Noël
3ffc748b86 improve max query in updateRelations - connect 2022-09-30 10:54:39 +02:00
Pierre Noël
43106732a2 improve max query in insertRelations 2022-09-30 10:54:39 +02:00
Pierre Noël
a9819dc375 use onConflict in updateRelations 2022-09-30 10:54:38 +02:00
Pierre Noël
3b0d6b6e7f refactor deleteAllRelations 2022-09-30 10:54:37 +02:00
Pierre Noël
4ce09c5193 various fixes 2022-09-30 10:54:37 +02:00
Pierre Noël
4ef5e1fa48 fix set issues 2022-09-30 10:54:36 +02:00
Pierre Noël
c1d82b6f9e use set format 2022-09-30 10:54:36 +02:00
Pierre Noël
5d0eb61fae start factorizing code 2022-09-30 10:54:35 +02:00
Pierre Noël
e7428cdf83 fix tests 2022-09-30 10:54:35 +02:00
Pierre Noël
e2d4cb483c fix delete previous relations for anyToOne 2022-09-30 10:54:34 +02:00
Pierre Noël
eaf0d84224 add decrements to queryBuilder + use it 2022-09-30 10:54:34 +02:00
Pierre Noël
59417498ab use NULL as default order + better handle migration 2022-09-30 10:54:33 +02:00
Pierre Noël
83c29436ca adapt all entity-manager with 2 order columns 2022-09-30 10:54:33 +02:00
Pierre Noël
c4031449fb implement 2 columns + adapt attachRelations 2022-09-30 10:54:32 +02:00
Pierre Noël
a1d1879ffb fix create entity with relations in connect 2022-09-30 10:54:32 +02:00
Pierre Noël
b7a1e312b4 implement simple partial update 2022-09-30 10:54:31 +02:00
Pierre Noël
e29c069e2a add first base for reordering 2022-09-30 10:54:31 +02:00
Pierre Noël
72eec1fb7c Merge branch 'main' into fix/upload-new-file-to-entity 2022-09-13 16:00:05 +02:00
Pierre Noël
b68aa8fcc6 fix conflict 2022-09-05 16:31:05 +02:00
Pierre Noël
23657b7b5a factorize code 2022-09-05 16:18:37 +02:00