43 Commits

Author SHA1 Message Date
Jamie Howard
b17dd81556 chore: improve naming of persisted tables 2023-03-17 13:31:55 +00:00
Jamie Howard
7e4cea8a24 refactor(ee): use strapi core store to persist DB tables
refactor(database)
2023-03-15 17:24:25 +00:00
Jamie Howard
d3c6a7c927 feature(database): account for persisted tables in schema diffing 2023-03-15 11:02:44 +00:00
Convly
0bf53f3416 Merge branch 'main' into features/deits 2022-11-21 17:19:39 +01:00
Sid
2ca3443a21 chore:fix spelling of SchemaProvideer to SchemaProvider 2022-11-16 14:17:17 +01:00
Alexandre BODIN
59b83c5953
Merge pull request #14320 from strapi/chore/eslint
chore/eslint
2022-09-08 14:45:12 +02:00
Alexandre Bodin
886fcc015d Create id column as nullable to avoid conflict with default null values 2022-09-07 15:59:07 +02:00
Alexandre Bodin
019e13d8e9 Improve pk management in schema builder 2022-09-07 09:11:50 +02:00
Alexandre Bodin
70b6966458 Fix eslint database 2022-09-05 19:44:58 +02:00
Alexandre Bodin
8f44422e8e Handles sqlite not able to add an increment table 2022-08-19 11:14:38 +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
LK HO
b87f0eef4e
fix: diff indexes columns
fixes: https://github.com/strapi/strapi/issues/13654
2022-06-30 13:08:00 +08:00
Alexandre Bodin
06c9939fa7 Fix typo 2022-03-23 11:15:25 +01:00
Alexandre Bodin
14305e8d11 Make strapi compatible with knex v1 2022-03-22 19:41:16 +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
0aed619155 Support schema option and add forceMigration options 2021-11-10 19:42:03 +01:00
Alexandre Bodin
58e024d3ad use columnName snake casing and rename timestamp attributes 2021-09-22 17:05:30 +02:00
Alexandre Bodin
82fe2a1b87 Add timestamps lifecycles subscriber 2021-09-20 19:15:50 +02:00
Alexandre Bodin
59eb3990dd Fix schema storage 2021-09-20 09:12:23 +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
eef1737acb Remove schema storage now that we use schema inspection 2021-09-16 11:47:04 +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
Alexandre Bodin
9c74f0a84e Fix some database schema sync 2021-08-10 09:36:02 +02:00
Alexandre Bodin
189c819a1e Drop foreign keys before dropping tables 2021-08-06 11:19:17 +02:00
Alexandre Bodin
680040fbda Fix morph populate 2021-07-30 20:45:51 +02:00
Alexandre Bodin
a9002be38a Add populate v1 for morph relations + create associations 2021-07-26 17:52:59 +02:00
Alexandre Bodin
b4ecb48c44 Remove mongoose connector 2021-06-29 16:27:35 +02:00
Alexandre Bodin
a1e2fc6829 Init fields 2021-06-28 12:34:29 +02:00
Alexandre Bodin
5316fb07ea Attach relations 2021-06-24 09:12:19 +02:00
Alexandre Bodin
6ac2c0f9b4 wip 2021-06-24 09:09:30 +02:00
Alexandre Bodin
29cb475d83 wip 2021-06-24 09:09:29 +02:00
Alexandre Bodin
e6145f18b1 wip 2021-06-24 09:09:29 +02:00
Alexandre Bodin
5e46f2999e Remove connection 2021-06-24 09:09:29 +02:00