mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
limit ldap_dn columns to 4000
- enlarging string cols from 255 to more than 4000 fails on default Oracle installations for invalid datatype conversion Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
d675e52350
commit
65cd09face
3 changed files with 6 additions and 6 deletions
|
|
@ -47,7 +47,7 @@ class Version1010Date20200630192842 extends SimpleMigrationStep {
|
|||
$table = $schema->createTable('ldap_user_mapping');
|
||||
$table->addColumn('ldap_dn', Types::STRING, [
|
||||
'notnull' => true,
|
||||
'length' => 255,
|
||||
'length' => 4000,
|
||||
'default' => '',
|
||||
]);
|
||||
$table->addColumn('owncloud_name', Types::STRING, [
|
||||
|
|
@ -73,7 +73,7 @@ class Version1010Date20200630192842 extends SimpleMigrationStep {
|
|||
$table = $schema->createTable('ldap_group_mapping');
|
||||
$table->addColumn('ldap_dn', Types::STRING, [
|
||||
'notnull' => true,
|
||||
'length' => 255,
|
||||
'length' => 4000,
|
||||
'default' => '',
|
||||
]);
|
||||
$table->addColumn('owncloud_name', Types::STRING, [
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
|
|||
}
|
||||
$column = $table->getColumn('ldap_dn');
|
||||
if ($tableName === 'ldap_user_mapping') {
|
||||
if ($column->getLength() < 4096) {
|
||||
$column->setLength(4096);
|
||||
if ($column->getLength() < 4000) {
|
||||
$column->setLength(4000);
|
||||
$changeSchema = true;
|
||||
}
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ class Version1130Date20211102154716 extends SimpleMigrationStep {
|
|||
$table2 = $schema->createTable('ldap_group_mapping_backup');
|
||||
$table2->addColumn('ldap_dn', Types::STRING, [
|
||||
'notnull' => true,
|
||||
'length' => 4096,
|
||||
'length' => 4000,
|
||||
'default' => '',
|
||||
]);
|
||||
$table2->addColumn('owncloud_name', Types::STRING, [
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class Version1130Date20220110154718 extends GroupMappingMigration {
|
|||
$table = $schema->createTable('ldap_group_mapping');
|
||||
$table->addColumn('ldap_dn', Types::STRING, [
|
||||
'notnull' => true,
|
||||
'length' => 4096,
|
||||
'length' => 4000,
|
||||
'default' => '',
|
||||
]);
|
||||
$table->addColumn('owncloud_name', Types::STRING, [
|
||||
|
|
|
|||
Loading…
Reference in a new issue