Yii Migration, Tables are not created

后端 未结 7 1930
日久生厌
日久生厌 2021-01-03 15:34

I am new to Yii(Still Learning) I am following a book tutorial here I did as it was written in the book created a new migrate

yiic migrate create create_issu         


        
7条回答
  •  感动是毒
    2021-01-03 16:08

    I just dry ran you code in it created the tables alright so I have to assume it's something wrong with what your calling. Only thing that immediatly sticks out is that your running a bash script rather than the bat script.

    yiic is a bash script. On Windows it is recommended to run yiic.bat or yiic.php.

    Can you run php from the command line? If so:

    • Delete the migration from the tbl_migrations
    • Run the migrations as "C:\path\to\php.exe yiic.php migrate up"

提交回复
热议问题