Skip to content

Commit 05c4cdb

Browse files
Pytalbackportbot[bot]
authored andcommitted
Migrate profile_config id column to bigint
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent c4149aa commit 05c4cdb

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* @copyright 2021 Christopher Ng <chrng8@gmail.com>
7+
*
8+
* @author Christopher Ng <chrng8@gmail.com>
9+
*
10+
* @license GNU AGPL version 3 or any later version
11+
*
12+
* This program is free software: you can redistribute it and/or modify
13+
* it under the terms of the GNU Affero General Public License as
14+
* published by the Free Software Foundation, either version 3 of the
15+
* License, or (at your option) any later version.
16+
*
17+
* This program is distributed in the hope that it will be useful,
18+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+
* GNU Affero General Public License for more details.
21+
*
22+
* You should have received a copy of the GNU Affero General Public License
23+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24+
*
25+
*/
26+
27+
namespace OC\Core\Migrations;
28+
29+
use OCP\Migration\BigIntMigration;
30+
31+
class Version23000Date20211213203940 extends BigIntMigration {
32+
33+
/**
34+
* @return array Returns an array with the following structure
35+
* ['table1' => ['column1', 'column2'], ...]
36+
*/
37+
protected function getColumnsByTable() {
38+
return [
39+
'profile_config' => ['id'],
40+
];
41+
}
42+
}

0 commit comments

Comments
 (0)