156 Commits

Author SHA1 Message Date
Pierre Noël
a9f53dc53b
Merge pull request #13350 from strapi/ML-folder/transactions
Ml folder/transactions
2022-05-31 18:58:22 +02:00
Gustav Hansen
bf32846a12 Merge branch 'master' into features/ML-folder 2022-05-30 10:47:27 +02:00
Pierre Noël
cd69fca6f9 add transaction for folder update 2022-05-23 14:31:04 +02:00
Alexandre BODIN
6c76e7d974
Merge pull request #12203 from Fyndl-io/fix-before-after-shared-state
Implement state sharing between DB before and after lifecycles events
2022-05-20 18:26:56 +02:00
Robin Goupil
eb6a244bc8
Apply suggestions from code review
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2022-05-20 13:31:48 +02:00
Pierre Noël
b7e82614f6 remove pagination on GET /folders 2022-05-20 10:25:58 +02:00
Alexandre Bodin
1a3b92b368 Fix raw sql migrations 2022-05-14 09:23:20 +02:00
Robin Goupil
b8ccb8800f Allow EntityManager CRUD methods to be called without a 'params' 2022-05-14 08:35:23 +02:00
Robin Goupil
376b1cdb73 Second test case to use API closer to documented use 2022-05-14 08:18:16 +02:00
Robin Goupil
7f0b35ebdb Fix deleteMany using afterDelete hook instead of afterDeleteMany 2022-05-14 08:18:16 +02:00
Robin Goupil
4c07ea76c5 Update typings 2022-05-14 08:18:16 +02:00
Robin Goupil
ade70cf78a Add unit tests for Lifecycles.run() 2022-05-14 08:18:16 +02:00
Robin Goupil
273ca638f4 Lifecycle provider to manage state instead of entity manager 2022-05-14 08:18:16 +02:00
Robin Goupil
dcf2a4e32c Fix state not being shared with "beforeXXX" and "afterXXX" events 2022-05-14 08:18:13 +02:00
rgoupil
3a1145be11 Fix state not being shared with "beforeXXX" and "afterXXX" 2022-05-14 08:15:15 +02:00
Pierre Noël
d6b385189a bump umzug to 3.1.1 2022-05-09 14:38:50 +02:00
Alexandre Bodin
c52f42c80d Apply feedbacks 2022-03-28 19:24:58 +02:00
Alexandre Bodin
5920e31b5b Put back entire workflow 2022-03-25 09:16:17 +01:00
Alexandre Bodin
4b965665d4 Test each sqlite pkg 2022-03-25 09:02:19 +01:00
Alexandre Bodin
06c9939fa7 Fix typo 2022-03-23 11:15:25 +01:00
Alexandre Bodin
317d5be115 Use better-sqlite3 by default 2022-03-23 10:37:12 +01:00
Alexandre Bodin
88c317effc Fix support old sqlite3 2022-03-22 20:04:23 +01:00
Alexandre Bodin
14305e8d11 Make strapi compatible with knex v1 2022-03-22 19:41:16 +01:00
derrickmehaffy
9445117c27 Ensure the session primary key check is disabled during schema update
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2022-03-02 16:01:58 -07:00
derrickmehaffy
9d5ba5b323 fix: empty catch block for primary key rule 2022-02-23 13:05:59 -07:00
derrickmehaffy
6f73f6772e fix: add try catch to pk check 2022-02-23 08:06:40 -07:00
derrickmehaffy
92dde65e70 Fix MySQL error on DigitalOcean by temp disabling requirement on session
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2022-02-16 07:52:15 -07:00
Alexandre BODIN
b980dd8aec
Merge pull request #12234 from strapi/content-42/fix-date-field
Deprecate for Date format different from yyyy-MM-dd + don't cast DATE from DB to Date()
2022-02-16 14:43:02 +01:00
Pierre Noël
47cd6b6290 fix when match returns null 2022-02-15 09:52:22 +01:00
Pierre Noël
82e68fca93 change error message to a deprecated message 2022-02-11 19:01:36 +01:00
Pierre Noël
ca910fe92c Only accept yyyy-MM-dd as Date + don't cast DATE from DB to Date() 2022-02-11 19:01:36 +01:00
Pierre Noël
c2b8a4ee98 parse boolean in convertQueryParam instead of parsing in database 2022-02-10 13:12:16 +01:00
Pierre Noël
7a21beefcd Add ability to use : false and : false 2022-02-10 10:07:09 +01:00
nemo0
2c931634f0 Changed unknow to unknown 2021-12-22 19:59:03 +05:30
derrickmehaffy
3abba613ce forgot the diff 2021-12-09 15:02:40 -07:00
derrickmehaffy
e16bf9b259 Switch Enum from native type to string or text
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
2021-12-09 12:31:52 -07:00
Alexandre Bodin
97b37f6b07 Cleanup code 2021-11-15 09:50:34 +01:00
Alexandre Bodin
79de0a5926 Change default config value 2021-11-15 09:41:00 +01:00
Alexandre Bodin
0aed619155 Support schema option and add forceMigration options 2021-11-10 19:42:03 +01:00
Pierre Noël
b58274aecb refactor error handling 2021-11-04 11:41:29 +01:00
Alexandre Bodin
3feadd6bc2 Ignore postgis tables 2021-10-28 14:33:17 +02:00
Alexandre Bodin
d62878cda0 Add more tests 2021-10-28 09:41:59 +02:00
Alexandre Bodin
4781d44ce8 Add casting tests 2021-10-27 14:59:13 +02:00
Alexandre Bodin
674acadcc6 Cast only for filters that require it 2021-10-27 10:44:16 +02:00
Alexandre Bodin
f73d302129 Type cast filters 2021-10-27 10:03:09 +02:00
Convly
67041e0090 Allow filters to be passed in the populate params 2021-10-21 10:48:43 +02:00
Alexandre Bodin
9dd2824824 Init very simple filters system for the query layer to implement publication state filtering 2021-10-13 14:06:16 +02:00
Alexandre Bodin
43c7e47f2b Merge branch 'releases/v4' into v4/middlewares 2021-09-29 09:52:15 +02:00
Alexandre Bodin
d6a448d44a Add listing commands 2021-09-29 09:34:37 +02:00
Alexandre Bodin
0accc88fdc ignore morph links for delete types 2021-09-28 17:13:24 +02:00