You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything seems to run fine, without any errors but it never creates any tables. I think I've read the docs correctly in that these commands should be creating the tables.
Or do I need to move on in the tutorial and create a repository before tables are actually generated?
I've also tried doing the migration in the index.ts by calling await app.migrateSchema(); after boot() but that doesn't do anything either. It doesn't error either.
Bit confused to be honest. Not sure what to look at in order to progress at this point. It's not working but not giving me any errors either. Showstopper.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've just started my first Loopback API project and all was going great until trying to connect to a MySql Database and start using migrations.
I've been running through the docs here and here.
I have a data source setup with the following config:
I also have a model set up with some simple string properties and this in the model function:
When I run the following commands:
Everything seems to run fine, without any errors but it never creates any tables. I think I've read the docs correctly in that these commands should be creating the tables.
Or do I need to move on in the tutorial and create a repository before tables are actually generated?
I've also tried doing the migration in the index.ts by calling
await app.migrateSchema();
afterboot()
but that doesn't do anything either. It doesn't error either.Bit confused to be honest. Not sure what to look at in order to progress at this point. It's not working but not giving me any errors either. Showstopper.
Is there any way to run this and maybe get some debug info?
Beta Was this translation helpful? Give feedback.
All reactions