addColumn('{{%accounts}}', 'otp_secret', $this->string()->after('registration_ip')); $this->addColumn('{{%accounts}}', 'is_otp_enabled', $this->boolean()->notNull()->defaultValue(false)->after('otp_secret')); } public function safeDown() { $this->dropColumn('{{%accounts}}', 'otp_secret'); $this->dropColumn('{{%accounts}}', 'is_otp_enabled'); } }