This repository was archived by the owner on Oct 7, 2024. It is now read-only.
feat(migration-scripts) add sql-blueprinting script#107
Open
FotisVasilopoulos wants to merge 1 commit intostrapi:mainfrom
Open
feat(migration-scripts) add sql-blueprinting script#107FotisVasilopoulos wants to merge 1 commit intostrapi:mainfrom
FotisVasilopoulos wants to merge 1 commit intostrapi:mainfrom
Conversation
a4f3f48 to
df6c154
Compare
derrickmehaffy
suggested changes
Jan 30, 2024
| "scripts": { | ||
| "start": "node index.js" | ||
| }, | ||
| "dependencies": { |
Member
There was a problem hiding this comment.
This will also need to support PG and SQLite for us to merge it
Author
There was a problem hiding this comment.
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 |
Member
There was a problem hiding this comment.
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.
Author
There was a problem hiding this comment.
Will update the README
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.