aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-04-27 22:55:18 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-05-02 21:10:47 +0200
commit37b6405a8ae64f634fb2482574331cddec92bc4d (patch)
tree8bacd6bd7e439329df7b727e0adc87a60bdca458
parent658edacf23a9bb06dafee3d271a23ff996274eef (diff)
downloadnextcloud-server-37b6405a8ae64f634fb2482574331cddec92bc4d.tar.gz
nextcloud-server-37b6405a8ae64f634fb2482574331cddec92bc4d.zip
Merge dropColumn and addColumn into changeColumn
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--core/Migrations/Version16000Date20190427105638.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Migrations/Version16000Date20190427105638.php b/core/Migrations/Version16000Date20190427105638.php
index ca5bf3fbb91..6ba83a56d12 100644
--- a/core/Migrations/Version16000Date20190427105638.php
+++ b/core/Migrations/Version16000Date20190427105638.php
@@ -65,9 +65,8 @@ class Version16000Date20190427105638 extends SimpleMigrationStep {
if ($schema->hasTable('collres_accesscache')) {
$table = $schema->getTable('collres_accesscache');
- $table->dropColumn('access');
-
- $table->addColumn('access', Type::BOOLEAN, [
+ $table->changeColumn('access', [
+ 'type' => Type::BOOLEAN,
'notnull' => true,
'default' => false,
]);