SaveAccountsTableData

class OC\Repair\Owncloud\SaveAccountsTableData
Copies the email address from the accounts table to the preference table,
before the data structure is changed and the information is gone
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#39
Implements:OCP\Migration\IRepairStep

Properties

protected static property OC\Repair\Owncloud\SaveAccountsTableData::$db
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#43
Type:\OCP\IDBConnection
protected static property OC\Repair\Owncloud\SaveAccountsTableData::$config
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#46
Type:\OCP\IConfig
protected static property OC\Repair\Owncloud\SaveAccountsTableData::$hasForeignKeyOnPersistentLocks
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#48

Methods

public OC\Repair\Owncloud\SaveAccountsTableData::__construct($db, $config)
Source:

lib/private/Repair/Owncloud/SaveAccountsTableData.php#54

Parameters:
public OC\Repair\Owncloud\SaveAccountsTableData::getName()
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#62
Returns:string
public OC\Repair\Owncloud\SaveAccountsTableData::run($output)
Source:

lib/private/Repair/Owncloud/SaveAccountsTableData.php#69

Parameters:
protected OC\Repair\Owncloud\SaveAccountsTableData::shouldRun()
Source:lib/private/Repair/Owncloud/SaveAccountsTableData.php#101
Returns:bool
protected OC\Repair\Owncloud\SaveAccountsTableData::runStep($offset)
Source:

lib/private/Repair/Owncloud/SaveAccountsTableData.php#132

Parameters:
  • $offset (int)
Returns:

int Number of copied users

protected OC\Repair\Owncloud\SaveAccountsTableData::migrateUserInfo($update, $userdata)
Source:

lib/private/Repair/Owncloud/SaveAccountsTableData.php#172

Parameters:
Throws:

\OCP\PreConditionNotMetException

Throws:

\UnexpectedValueException

Throws:

\OCP\PreConditionNotMetException

Throws:

\UnexpectedValueException