createTable('tbl_user', array( 'id' => Schema::TYPE_PK, 'username' => Schema::TYPE_STRING.' NOT NULL', 'password_hash' => Schema::TYPE_STRING.' NOT NULL', 'email' => Schema::TYPE_STRING.' NOT NULL', 'role' => 'tinyint NOT NULL DEFAULT 10', 'status' => 'tinyint NOT NULL DEFAULT 10', 'create_time' => Schema::TYPE_INTEGER.' NOT NULL', 'update_time' => Schema::TYPE_INTEGER.' NOT NULL', ), $tableOptions); } public function down() { $this->dropTable('tbl_user'); } }