PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, December 30, 2021

[FIXED] Yii Database Migration

 December 30, 2021     migration, yii     No comments   

Issue

Hello guys I am new to yii frame work and I am following larry ullman's instructions on the e-book. The problem I have is: when I'm creating new migration I keep on getting this error

The migration directory does not exists:application.migrations

I use the command : $ yiic migrate create <name>

Thank you guys for helping me understand yii.


Solution

I have noticed that the answer for this issue have been answered in the comments section, but may not be noticable for others.

Just to summarize:

  1. You need to execute the yiic inside the protected directory
  2. There should be an yiic.bat inside the protected directory
  3. In some cases, the migration directory inside the protected directory must be available beforehand and is writable.


Answered By - Syakur Rahman
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing