getTable('twofactor_totp_secrets'); if (!$table->hasColumn('last_counter')) { // TODO: use \OCP\DB\Types::BIGINT $table->addColumn('last_counter', 'bigint', [ 'notnull' => true, 'default' => -1, ]); } return $schema; } }