13 Commits

Author SHA1 Message Date
Marc Roig
aec2e199bd
fix: drop slug fields index (#20633)
* fix: drop slug fields index

* chore: explicit index name
2024-06-26 11:48:57 +02:00
Marc Roig
4e90afaca7
fix: create locale column if it does not exist (#20618)
* fix: create locale column if it does not exist

* fix: revert discard draft

* fix: remove unused import

* feat: migrate published at column
2024-06-25 14:31:03 +02:00
Alexandre Bodin
9df6896208 chore: upgrade umzug & improve db migration logging 2024-06-17 10:47:06 +02:00
Marc Roig
eb316acc5c
fix: create locale column when migrating from v4 (#20261)
* fix: create locale column

* fix: typo

* fix: rewrite comment

* feat: create locale column migration
2024-05-24 15:09:53 +02:00
Marc Roig
58f553ab42
fix: doc id migration for mysql (#20174)
* fix: doc id migration for mysql

* feat: mysql subquery
2024-04-25 14:10:47 +02:00
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
Alexandre BODIN
1122223fae
chore: add document-id migration (#19514)
* chore: add document-id migration

* 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

---------

Co-authored-by: Marc-Roig <marc12info@gmail.com>
Co-authored-by: Marc Roig <marc.roig.campos@strapi.io>
2024-04-03 15:53:24 +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
Alexandre Bodin
1ccc22fb6d chore(core/database): update test 2023-10-24 17:18:59 +01:00
Alexandre Bodin
f0c3683482 feat(database): add internal migrations 2023-10-24 17:18:59 +01:00
Alexandre Bodin
c46760bcc4 Diff typings 2023-09-12 21:47:42 +02:00
Alexandre Bodin
e26583147e Migrate database package to typescript 2023-09-12 13:29:00 +02:00