313 Commits

Author SHA1 Message Date
Convly
66e3aa5dcb Merge branch 'master' into features/typescript 2022-05-24 08:02:38 +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
tiagolima90
99a5c7eed7
Merge branch 'strapi:master' into master 2022-05-16 09:44:17 +00: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
Finn Gegenmantel
6a96dbad6d Add missing where parameters 2022-05-11 12:12:30 -06:00
Pierre Noël
d6b385189a bump umzug to 3.1.1 2022-05-09 14:38:50 +02:00
tiagolima90
5dc41afa69
Merge branch 'strapi:master' into master 2022-04-04 18:38:12 +00:00
Convly
84d106e7f8 Use new dirs (app/dist) 2022-04-04 11:46:22 +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
tiagolima90
65bea3aaa3 remove unecessary validations 2022-03-15 22:49:11 -01:00
tiagolima90
8f168a9432 reduce number of mysql queries to get table foreign keys 2022-03-15 11:19:00 -01:00
tiagolima90
b1a162c502 fix get foreign keys with multiple referenced columns 2022-03-15 09:08:11 -01:00
tiagolima90
c4690953eb
optimize get foreign keys
make separate requests to each information_schema table instead of one with inner joins for much better performance on MySQL 5.7
2022-03-15 00:16:19 -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