Skip to content

Instantly share code, notes, and snippets.

View ...
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
View Migration error
Yii Migration Tool v1.0 (based on Yii v1.1.9)
Total 7 new migrations to be applied:
m120107_225219_reg_date_null
m120107_230853_likes_table
m120108_174935_likes_ip_as_pk
m120110_001940_password_recovery
m120113_184432_qnaanswer_trigers
m120120_194333_last_answer_time
m120121_142901_last_login2last_visit
View sql query fail
SQL query:
--
-- Constraints for table `blog_comments`
--
ALTER TABLE `blog_comments` ADD CONSTRAINT `blog_comments_ibfk_1` FOREIGN KEY ( `blogid` ) REFERENCES `intva109_phpbook`.`blog` (
`id`
) ON DELETE CASCADE ON UPDATE CASCADE ;
MySQL said: Documentation
View yii stuff #1
PHP Error[2]: Invalid argument supplied for foreach()
in file C:\Wamp\www\phpguide\framework\collections\CMap.php at line 288
#0 C:\Wamp\www\phpguide\framework\base\CModule.php(468): mergeArray()
#1 C:\Wamp\www\phpguide\framework\base\CComponent.php(153): CConsoleApplication-
>setComponents()
#2 C:\Wamp\www\phpguide\framework\base\CModule.php(483): CConsoleApplication->__
set()
#3 C:\Wamp\www\phpguide\framework\base\CApplication.php(144): CConsoleApplicatio
n->configure()
#4 C:\Wamp\www\phpguide\framework\YiiBase.php(127): CConsoleApplication->__const