Migrate ids to bigint in the dav app
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c58ff2990e
commit
740d820194
1 changed files with 35 additions and 0 deletions
35
apps/dav/lib/Migration/Version1004Date20170919103422.php
Normal file
35
apps/dav/lib/Migration/Version1004Date20170919103422.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
namespace OCA\DAV\Migration;
|
||||
|
||||
use Doctrine\DBAL\Schema\Schema;
|
||||
use OCP\Migration\BigIntMigration;
|
||||
use OCP\Migration\SimpleMigrationStep;
|
||||
use OCP\Migration\IOutput;
|
||||
|
||||
/**
|
||||
* Auto-generated migration step: Please modify to your needs!
|
||||
*/
|
||||
class Version1004Date20170919103422 extends BigIntMigration {
|
||||
|
||||
/**
|
||||
* @return array Returns an array with the following structure
|
||||
* ['table1' => ['column1', 'column2'], ...]
|
||||
* @since 13.0.0
|
||||
*/
|
||||
protected function getColumnsByTable() {
|
||||
return [
|
||||
'addressbooks' => ['id'],
|
||||
'addressbookchanges' => ['id', 'addressbookid'],
|
||||
'calendars' => ['id', 'calendarid'],
|
||||
'calendarchanges' => ['id', 'calendarid'],
|
||||
'calendarobjects' => ['id', 'calendarid'],
|
||||
'calendarobjects_props' => ['id', 'calendarid', 'objectid'],
|
||||
'calendarsubscriptions' => ['id', 'calendarid'],
|
||||
'cards' => ['id', 'addressbookid'],
|
||||
'cards_properties' => ['id', 'addressbookid', 'cardid'],
|
||||
'dav_shares' => ['id', 'resourceid'],
|
||||
'schedulingobjects' => ['id', 'addressbookid'],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue