addDescription( 'Script to convert old, TOTP specific, column values to new structure' ); $this->requireExtension( 'OATHAuth' ); } /** * @throws ConfigException */ public function execute() { $database = OATHAuthServices::getInstance()->getDatabase(); $dbw = $database->getDB( DB_PRIMARY ); // @phan-suppress-next-line PhanTypeMismatchArgumentSuperType if ( !UpdateTables::convertToGenericFields( $dbw ) ) { $this->fatalError( "Failed to update the data structure rows.\n" ); } $this->output( "Done.\n" ); } } $maintClass = UpdateDatabaseValueFormat::class; require_once RUN_MAINTENANCE_IF_MAIN;