aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-25 14:19:23 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-26 13:11:32 +0200
commitcf3fadc707f247ee4273d8c36e1af5ded7cd9154 (patch)
treebd1f955f1f6f1437e15d380b4207bca282e6c8a6 /apps/user_status/lib
parentbbfa9d1440e41ae9f933bcf37e30a0bc2043dd10 (diff)
downloadnextcloud-server-cf3fadc707f247ee4273d8c36e1af5ded7cd9154.tar.gz
nextcloud-server-cf3fadc707f247ee4273d8c36e1af5ded7cd9154.zip
fix(userstatus): Sync migration version number with app version
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/user_status/lib')
-rw-r--r--apps/user_status/lib/Migration/Version1003Date20210809144824.php (renamed from apps/user_status/lib/Migration/Version2301Date20210809144824.php)12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/user_status/lib/Migration/Version2301Date20210809144824.php b/apps/user_status/lib/Migration/Version1003Date20210809144824.php
index 947378484c6..ed8a15a9c60 100644
--- a/apps/user_status/lib/Migration/Version2301Date20210809144824.php
+++ b/apps/user_status/lib/Migration/Version1003Date20210809144824.php
@@ -33,7 +33,7 @@ use OCP\Migration\SimpleMigrationStep;
/**
* @package OCA\UserStatus\Migration
*/
-class Version2301Date20210809144824 extends SimpleMigrationStep {
+class Version1003Date20210809144824 extends SimpleMigrationStep {
/**
* @param IOutput $output
@@ -48,10 +48,12 @@ class Version2301Date20210809144824 extends SimpleMigrationStep {
$statusTable = $schema->getTable('user_status');
- $statusTable->addColumn('is_backup', Types::BOOLEAN, [
- 'notnull' => false,
- 'default' => false,
- ]);
+ if (!$statusTable->hasColumn('is_backup')) {
+ $statusTable->addColumn('is_backup', Types::BOOLEAN, [
+ 'notnull' => false,
+ 'default' => false,
+ ]);
+ }
return $schema;
}