Skip to content

Commit 4f3b63c

Browse files
committed
Extend propertypath to 4000
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
1 parent 0e87c6f commit 4f3b63c

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
declare(strict_types=1);
3+
/**
4+
* @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
5+
*
6+
* @license GNU AGPL version 3 or any later version
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Affero General Public License as
10+
* published by the Free Software Foundation, either version 3 of the
11+
* License, or (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU Affero General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Affero General Public License
19+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
23+
namespace OC\Core\Migrations;
24+
25+
use Closure;
26+
use OCP\DB\ISchemaWrapper;
27+
use OCP\Migration\IOutput;
28+
use OCP\Migration\SimpleMigrationStep;
29+
30+
class Version18000Date20191126000000 extends SimpleMigrationStep {
31+
32+
/**
33+
* @param IOutput $output
34+
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
35+
* @param array $options
36+
* @return null|ISchemaWrapper
37+
*/
38+
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
39+
/** @var ISchemaWrapper $schema */
40+
$schema = $schemaClosure();
41+
42+
if ($schema->hasTable('properties')) {
43+
$table = $schema->getTable('properties');
44+
45+
$table->changeColumn('propertypath', [
46+
'notnull' => true,
47+
'length' => 4000,
48+
'default' => '',
49+
]);
50+
}
51+
52+
return $schema;
53+
}
54+
}

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
3030
// when updating major/minor version number.
3131

32-
$OC_Version = array(18, 0, 0, 1);
32+
$OC_Version = array(18, 0, 0, 2);
3333

3434
// The human readable string
3535
$OC_VersionString = '18.0.0 Alpha';

0 commit comments

Comments
 (0)