summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Migration/Version1130Date20211102154716.php
Commit message (Collapse)AuthorAgeFilesLines
* limit ldap_dn columns to 4000Arthur Schiwon2022-03-301-3/+3
| | | | | | | - 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>
* do not forget DB table prefix with truncate queryArthur Schiwon2022-03-181-1/+1
| | | | | | | | - as used in LDAP's AbstractMapping::clear() method - and in Comment's ManagerTest::setUp() - fixes a DB Exception with Oracle Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix similar potential problems with fetchOne loopsCôme Chilliet2022-03-081-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix duplicated UUID detection when there are empty uuidsCôme Chilliet2022-03-081-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* code styleArthur Schiwon2022-03-031-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* be conservative when reading from fresh created columnArthur Schiwon2022-03-031-3/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow to re-run migration step when backup DB is already createdArthur Schiwon2022-02-101-1/+12
| | | | | | - to heal incomplete states from broken upgrades Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* invalidated duplicated UUIDs prior to migration changeArthur Schiwon2022-02-101-0/+90
| | | | | | | | - in a proper setup there are no duplicated UUIDs - not all setups are proper - log warning to admin Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove useless indexes with duplicated names on backup tableCôme Chilliet2022-01-131-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix user_ldap migration for long DNs supportCôme Chilliet2022-01-131-48/+30
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix primary key change in user_ldap migrationCôme Chilliet2022-01-131-2/+29
| | | | | | | Use a backup table to copy the data, drop table and recreate it with correct primary key, then copy the data back and drop the backup table. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add missing copyright headers in migration stepsCôme Chilliet2021-12-091-0/+22
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use clearer names for variablesCôme Chilliet2021-11-231-17/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add an index for directory_uuid as wellCôme Chilliet2021-11-231-0/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fixes in migration stepCôme Chilliet2021-11-231-3/+2
| | | | | | | We cannot set ldap_dn_hash column as notnull because it is empty for existing users before postSchemaChange is called Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fixed migration step for user_ldapCôme Chilliet2021-11-231-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix variable namesJoas Schilling2021-11-231-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change column names to ldap_dn and ldap_dn_hash and add migrationCôme Chilliet2021-11-231-0/+139
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>