Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 639 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 639 Bytes

Create test db and migrations

  • Create database.
  • Before starting migrations past configs to db.php or db.local.php

To create user table migrations run in root module folder:

php tests/_app/yii.php migrate/up --interactive=0 --migrationPath=@testmigrations

To create rbac migrations run in root module folder:

php tests/_app/yii.php migrate/up --interactive=0 --migrationPath=@yii/rbac/migrations

To create hit-counter table run migration:

php tests/_app/yii.php migrate/up --interactive=0 --migrationPath=@modulemigrations

Now all tebles for tests mast be set as well. =)