githubjeka / yii2-rest

Yii2 REST API template
Other
159 stars 76 forks source link

Can you give Database ? #13

Open nikunjthedreamer opened 8 years ago

nikunjthedreamer commented 8 years ago

Please provide database so we can easily use it

githubjeka commented 8 years ago

https://github.com/githubjeka/yii2-rest/tree/master/console/migrations

Just run php yii migrate

See full steps to install https://github.com/githubjeka/yii2-rest#getting-started

edemidenko-zz commented 6 years ago

Could you please give an advice... I can't run migrate. It stack after creating user table and I have such error in console:

$ php yii migrate Yii Migration Tool (based on Yii v2.0.0-beta)

Creating migration history table "migration"...done. Total 3 new migrations to be applied: m140724_112641_init m140731_074148_post m140922_121411_comments

Apply the above migrations? (yes|no) [no]:yes *** applying m140724_112641_init

create table {{%user}} ... done (time: 0.012s) Exception 'yii\base\UnknownPropertyException' with message 'Getting unknown property: yii\console\Application::security'

in C:\Work\yii2-rest\vendor\yiisoft\yii2\base\Component.php:142

Difference in creating project I was not able to execute -> composer create-project --prefer-dist -s dev "githubjeka/rest-yii2" due to composer demand exactly 1.0.0 version of the "fxp/composer-asset-plugin" -> otherwise composer project-create will not be executed successfully!

Instead I run:

githubjeka commented 6 years ago

Getting unknown property: yii\console\Application::security

Something wrong with Yii.

I update composer.json. - https://github.com/githubjeka/yii2-rest/commit/a85f8f9cb66d336bf0e4cffa269c14d425e375f4 Try to delete vendors directory and update your composer.json too and run composer update