LoginSignup
0
1

More than 5 years have passed since last update.

CakePHPのusersプラグインのDBテーブルを部分的に作り直す

Posted at

問題

usersテーブルを誤って消してしまい、作りなおそうと思って以下を走らせたけど、、、できない。。

$ sh /share/app/Console/cake Migrations.migration run all --plugin Users

usersプラグインにはusersとuser_detailsの2つのテーブルがあるので、既にいずれかがある場合は動かないっぽい。

解決法

こちらのコマンドでusersテーブルだけ再生できた。

$ sh /share/app/Console/cake schema create users --plugin Users
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1