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 +}