Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Error: Cannot migrate models not attached to this datasource: CoffeeShop #45

Closed
pizza-hut opened this issue Apr 1, 2020 · 5 comments
Closed
Assignees
Labels

Comments

@pizza-hut
Copy link

pizza-hut commented Apr 1, 2020

Followed the LB3 getting started but encountered above error...

datasource.js

"localDs": { "host": "127.0.0.1", "port": 3306, "url": "", "database": "demo", "password": "...", "name": "localDs", "user": "...", "connector": "mysql" } }

model-config.js
"Coffeeshop": { "dataSource": "localDs", "public": true }

@dhmlau
Copy link
Member

dhmlau commented Apr 2, 2020

@pizza-hut, a quick question, do you have the database demo created? The database migration script expects the database exist and creates the table. Thanks.

@dhmlau
Copy link
Member

dhmlau commented Apr 2, 2020

FYI - Not sure if you're just starting out using LoopBack, if yes, I'd strongly recommend you to use LoopBack 4. LoopBack 4 is the current release, where LoopBack 3 will go end of life in Dec 2020. Also, LoopBack 4 has better extensibility and with more updated technology stacks.

To get started with LoopBack 4, please try https://loopback.io/doc/en/lb4/todo-tutorial.html.

@dhmlau dhmlau self-assigned this Apr 2, 2020
@pizza-hut
Copy link
Author

pizza-hut commented Apr 2, 2020 via email

@stale
Copy link

stale bot commented Jun 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 1, 2020
@stale
Copy link

stale bot commented Jun 15, 2020

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 CODEOWNERS file at the top-level of this repository.

@stale stale bot closed this as completed Jun 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants