createTable('author', [ 'id' => $this->primaryKey(), 'name' => $this->string(), 'secondname' => $this->string(), 'email' => $this->string(), 'phone' => $this->string(), 'password_hash' => $this->string(), 'password_reset_token' => $this->string(), 'auth_key' => $this->string(), 'created_at' => $this->integer(), 'updated_at' => $this->integer(), 'about' => $this->text(), 'status' => $this->integer() ]); } /** * {@inheritdoc} */ public function safeDown() { $this->dropTable('author'); } }