Move authtoken login_name column to varchar(255)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
7c9fcc434f
commit
8e72e8c622
|
@ -14,6 +14,14 @@ class Version21000Date20201120141228 extends SimpleMigrationStep {
|
|||
/** @var ISchemaWrapper $schema */
|
||||
$schema = $schemaClosure();
|
||||
|
||||
if ($schema->hasTable('authtoken')) {
|
||||
$table = $schema->getTable('authtoken');
|
||||
$loginNameColumn = $table->getColumn('login_name');
|
||||
if ($loginNameColumn->getLength() !== 255) {
|
||||
$loginNameColumn->setLength(255);
|
||||
}
|
||||
}
|
||||
|
||||
if ($schema->hasTable('dav_job_status')) {
|
||||
$schema->dropTable('dav_job_status');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue