-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import LB3 DataSources to a LB4 Project #4346
Comments
Note that since #5000 has landed, please follow the new format for the datasource definition. |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
Related to #3946.
Currently, users have to manually move their datasources from LB3 to LB4 using the steps defined in #4343. In order to automate this process, create a CLI command that will move the datasources from a mounted LB3 application to the LB4 project.
Since LB3 datasources are compatible with LB4, the same datasource configuration should be used when it's moved.
Example
Given this file in the mounted LB3 application:
lb3app/server/datasources.json
Create the following in the LB4 project:
src/datasources/db.datasource.config.json
src/datasources/db.datasource.ts
src/datasources/mysqlds.datasource.config.json
src/datasources/mysqlds.datasource.ts
Acceptance criteria
lb4 import-lb3-datasources
that will take in a path to a file e.g.lb4 import-lb3-datasources lb3app/servers/datasources.json
and migrate all datasources similar to the example abovesrc/datasources/index.ts
The text was updated successfully, but these errors were encountered: