Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

feat(migration-scripts) add sql-blueprinting script #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FotisVasilopoulos
Copy link

@FotisVasilopoulos FotisVasilopoulos commented Aug 3, 2023

I created this script in order to help with leftovers in v3, which are blocking for migration to v4 and have to be removed manually.

"scripts": {
"start": "node index.js"
},
"dependencies": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also need to support PG and SQLite for us to merge it

Copy link
Author

@FotisVasilopoulos FotisVasilopoulos Feb 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will rename it to "mySQL-blueprinting" for this particular reason, but I can rename it to "db-blueprinting" and add more dbs support in the future. Is it blocking if I define that it works only for mySQL atm?

We run our strapi project in a new sql db so it creates its clean structure.
This db can be used as a blueprint since it is created by our strapi current state and doesnt have old entries etc.

## Usage example
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I understand that this should be used with two databases of the same version (eg v3), can you add some clarification to that point as it may confuse some users.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update the README

@derrickmehaffy derrickmehaffy added the issue: enhancement Issue suggesting an enhancement to an existing feature label Jan 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue: enhancement Issue suggesting an enhancement to an existing feature
Projects
Status: To be reviewed
Development

Successfully merging this pull request may close these issues.

2 participants