From 7deacbb39b3e899d103d77224ad4e6522e833179 Mon Sep 17 00:00:00 2001 From: erics342 Date: Tue, 12 Nov 2013 20:45:40 -0200 Subject: [PATCH] 2 fields on create statement were missing create_at and lastvisit_at were missing in the table. --- migrations/m110805_153437_installYiiUser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/migrations/m110805_153437_installYiiUser.php b/migrations/m110805_153437_installYiiUser.php index 6130658..eb609db 100644 --- a/migrations/m110805_153437_installYiiUser.php +++ b/migrations/m110805_153437_installYiiUser.php @@ -33,6 +33,8 @@ public function safeUp() "lastvisit" => "int(10) NOT NULL DEFAULT 0", "superuser" => "int(1) NOT NULL DEFAULT 0", "status" => "int(1) NOT NULL DEFAULT 0", + "create_at" => "timestamp NULL DEFAULT NULL", + "lastvisit_at" => "timestamp NULL DEFAULT NULL", ), $this->MySqlOptions); $this->createIndex('user_username', Yii::app()->getModule('user')->tableUsers, 'username', true); $this->createIndex('user_email', Yii::app()->getModule('user')->tableUsers, 'email', true); @@ -74,6 +76,8 @@ public function safeUp() "lastvisit" => "int(10) NOT NULL", "superuser" => "int(1) NOT NULL", "status" => "int(1) NOT NULL", + "create_at" => "timestamp NULL", + "lastvisit_at" => "timestamp NULL", )); $this->createIndex('user_username', Yii::app()->getModule('user')->tableUsers, 'username', true); $this->createIndex('user_email', Yii::app()->getModule('user')->tableUsers, 'email', true); @@ -209,4 +213,4 @@ private function readStdinUser($prompt, $field, $default = '') { } return $input; } -} \ No newline at end of file +}