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
Constants¶
-
BATCH_SIZE = 75
Source: lib/private/Repair/Owncloud/SaveAccountsTableData.php#40
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: Parameters: - $db (
OCP\IDBConnection
) - $config (
OCP\IConfig
)
- $db (
-
public
OC\Repair\Owncloud\SaveAccountsTableData::
getName
()¶ Source: lib/private/Repair/Owncloud/SaveAccountsTableData.php#62 Returns: string
-
public
OC\Repair\Owncloud\SaveAccountsTableData::
run
($output)¶ Source: Parameters: - $output (
OCP\Migration\IOutput
)
- $output (
-
protected
OC\Repair\Owncloud\SaveAccountsTableData::
shouldRun
()¶ Source: lib/private/Repair/Owncloud/SaveAccountsTableData.php#101 Returns: bool
-
protected
OC\Repair\Owncloud\SaveAccountsTableData::
runStep
($offset)¶ Source: Parameters: - $offset (int)
Returns: int Number of copied users
-
protected
OC\Repair\Owncloud\SaveAccountsTableData::
migrateUserInfo
($update, $userdata)¶ Source: Parameters: - $update (
OCP\DB\QueryBuilder\IQueryBuilder
) - $userdata (array)
Throws: Throws: \UnexpectedValueException
Throws: Throws: \UnexpectedValueException
- $update (