Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StrongLoop ACL table doesn't exist

I succeed to generate all my models from my database. Then, I run the api by executing, 'node .' I'm able to see all my web services but when I try to try out a service, there is an 500 error saying to me that There is no ACL table. So, I open model-config.json and I saw that there were 4 models I didn't created before (User, AccessToken, ACL, RoleMapping and Role). I would like to know if all these models has to exist in my database. And Do you know which properties I have to put in each table? Thanks you in advance.

Error:
{
  "error": {
    "name": "Error",
    "status": 500,
    "message": "ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist",
    "code": "ER_NO_SUCH_TABLE",
    "errno": 1146,
    "sqlState": "42S02",
    "index": 0,
    "stack": "Error: ER_NO_SUCH_TABLE: Table 'sed.ACL' doesn't exist\n [...]"
  }
}
like image 500
Matthieu Penchenat Avatar asked Sep 09 '15 18:09

Matthieu Penchenat


1 Answers

You will need to automigrate these tables yourself. See:

  • https://groups.google.com/forum/#!searchin/loopbackjs/automigrate$20default$20tables/loopbackjs/IiapgVVf-NQ/32yeCnNxBmIJ

  • https://github.com/strongloop/loopback/issues/591.

like image 83
superkhau Avatar answered Oct 03 '22 23:10

superkhau