17 Commits

Author SHA1 Message Date
Marc Roig
76447298a8
feat: migrate document published entries from v4 (#19813)
* chore: add document-id migration

* feat: migration file

* chore: change migration name

* feat: document draft creation

* fix: use knex to query

* feat: discard drafts

* fix: use database identifiers utils

* fix: leave rename identifiers migration name as it was before

* chore: revert database config

* feat: simplify migration document ids query

* update with subquery

* chore: comment todo on create draft migration

* chore: remove draft creation migration

* feat: register internal migrations dynamically (#20002)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: register internal migrations dynamically (#20006)

* feat: register internal migrations dynamically

* chore: load umzug lazily

* chore: lazy load umzugProvider migrations

* feat: discard draft migration from strapi core

* fix: unit test

* fix: make discardDraft inline

* fix: prettier

* fix: remove unused code

* fix: ignore tables that do not exist

* fix: build

* chore: remove comment

---------

Co-authored-by: Alexandre Bodin <bodin.alex@gmail.com>
2024-04-17 13:41:44 +02:00
Ben Irvin
fd7c075839
enhancement(database)!: shorten db identifies and add internal migration 2024-03-25 18:02:30 +01:00
Alexandre Bodin
a95285578b chore: database enhancements 2024-03-13 22:13:40 +01:00
Ben Irvin
c29dcf0999
chore: add centralized methods for replacing hardcoded strings for database identifiers 2024-02-23 15:53:56 +01:00
Alexandre Bodin
3bc82f6a77 chore: add a simple model registry 2024-01-26 11:31:53 +01:00
Alexandre Bodin
9d5602124c chore: life compontent logic out of the db and start exposing models 2024-01-25 13:13:01 +01:00
Ben Irvin
0504e10de7 chore: move contentype transform out of database
Co-authored-by: Marc Roig <Marc-Roig@users.noreply.github.com>
2023-10-31 15:00:33 +01:00
Ben Irvin
7a48741483
fix: init dialect on every new connection in the pool (#18588) 2023-10-30 17:53:25 +01:00
Alexandre Bodin
338a75fd16 Export isKnexQuery but tag is as internal 2023-10-09 10:54:13 +02:00
Alexandre Bodin
eb64ae5745 Update typings and fix invalid usage 2023-09-21 16:49:53 +02:00
Alexandre Bodin
ba04122263 wip 2023-09-20 15:52:30 +02:00
Alexandre Bodin
d1cc5df7c5 Update types 2023-09-20 11:46:13 +02:00
Alexandre Bodin
4761ec70c8 wip 2023-09-14 17:35:36 +02:00
Alexandre Bodin
c46760bcc4 Diff typings 2023-09-12 21:47:42 +02:00
Alexandre Bodin
d69975be24 Fix dialects 2023-09-12 16:26:42 +02:00
Alexandre Bodin
ab9e5cc342 Ts fixes 2023-09-12 13:29:02 +02:00
Alexandre Bodin
e26583147e Migrate database package to typescript 2023-09-12 13:29:00 +02:00