64 Commits

Author SHA1 Message Date
Ben Irvin
051b4bdf97
Merge branch 'main' into fix/mysql-dialect-connection-option 2023-04-20 10:53:21 +02:00
Jun Xu
27bd06b6dd Fixed MySQL dialect connection option to allow to set bigNumberStrings from db config 2023-04-05 21:33:59 -07:00
Marc
74799c27b4 fix: parse JSONB 2023-04-05 18:57:43 +02:00
Ben Irvin
297bda0d5c add comments 2023-03-23 16:10:24 +01:00
Ben Irvin
f75af12505 sqlite-legacy is dialect sqlite 2023-03-23 14:25:47 +01:00
Ben Irvin
41c7792b54 add mysql2 as a db client option 2023-03-22 12:11:15 +01:00
Pierre Noël
52bcdad90b Fix JSON field for postgres when the value is a simple string 2023-02-08 18:09:54 +01:00
Cameron Paczek
dc784812ac Remove PG Magic Numbers 2023-01-19 14:41:32 -08:00
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
WalkingPizza
f40c1f517a Allow USE RETURNING in SQLite 2022-08-31 10:56:06 +02:00
Alexandre Bodin
8f44422e8e Handles sqlite not able to add an increment table 2022-08-19 11:14:38 +02:00
Alexandre Bodin
b4572b7fb5 Refactor some multi class files 2022-08-11 10:20:50 +02: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
Alexandre BODIN
08fecfc130
Merge pull request #13550 from meherchandan/master
Optimize database foreign keys references - PostgreSQL
2022-06-28 18:17:18 +02:00
meherchandan
e00b8f048d fix: postgres timeout error due to complex join queries to fect foreign key references 2022-06-14 17:17:53 +04:00
tiagolima90
5dc41afa69
Merge branch 'strapi:master' into master 2022-04-04 18:38:12 +00: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
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
nemo0
2c931634f0 Changed unknow to unknown 2021-12-22 19:59:03 +05:30
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
3feadd6bc2 Ignore postgis tables 2021-10-28 14:33:17 +02:00
Alexandre Bodin
00a43df7bf Fix bug after merge 2021-09-21 15:32:49 +02:00
Alexandre Bodin
4eea2b1569 Fix test and upgrade github workflows 2021-09-21 15:14:26 +02: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
76caaba714 Read schema after migrations 2021-09-16 13:37:13 +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
f24b38602a Add constraint altering only when possible 2021-09-13 16:54:14 +02:00
Alexandre Bodin
82551dc6fd Init schema inspector 2021-09-13 16:14:33 +02:00
Alexandre Bodin
0f3f984ea7 Init migration v4
- Hooks registry
- D&P CT migrations
- i18N CT migrations
- Umzug with js / sql migrations
- Eslint updates
2021-09-13 12:03:12 +02:00