28 Commits

Author SHA1 Message Date
Alexandre Bodin
69a5133b60 Rename to more generic window functions 2022-11-21 15:00:31 +01:00
Alexandre Bodin
ce6143790c Group supportX functions 2022-11-21 14:46:06 +01:00
Alexandre Bodin
25507f8328 Simplify main PR 2022-11-21 14:30:55 +01:00
Pierre Noël
b016113ded remove throw error 2022-11-19 02:15:12 +01:00
Pierre Noël
0c76c5ae1a add error management 2022-11-18 23:57:46 +01:00
Pierre Noël
11d6f7803c alias version 2022-11-17 13:07:01 +01:00
Pierre Noël
eba2da51af refactor the way database version is fetched 2022-11-16 18:32:32 +01:00
Pierre Noël
887ea1ae59 Avoid use of window functions for MySQL versions below 8 2022-11-15 16:43:04 +01:00
Alexandre Bodin
cf49ddbbfc Prettier and backend fix 2022-08-11 10:20:49 +02:00
Alexandre Bodin
0ae14c06cb 1st fix pass 2022-08-11 10:20:48 +02:00
tiagolima90
5dc41afa69
Merge branch 'strapi:master' into master 2022-04-04 18:38:12 +00: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
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
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
0aed619155 Support schema option and add forceMigration options 2021-11-10 19:42:03 +01:00
Alexandre Bodin
0d9ba0e5fd Cleanup and add storage with hash to compare and sync in one direction only 2021-09-17 12:00:14 +02:00
Alexandre Bodin
e57a40b328 Use double type for more precision 2021-09-16 14:04:10 +02:00
Alexandre Bodin
72b5a19a7c Pg & Mysql schema reading & indexing fks 2021-09-16 11:37:44 +02:00
Alexandre Bodin
c173fa416e wip 2021-09-15 19:53:15 +02:00
Alexandre Bodin
82551dc6fd Init schema inspector 2021-09-13 16:14:33 +02:00