aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-01-24 09:22:00 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-24 09:22:00 +0000
commit3dbf91d2b27f156ef9ae31a737ca494c3ac505a5 (patch)
treee76021810172aebe09fbfad22a9f23a34086deca /db
parentfdce226282d2421c9cea33e97b0a9c4682f27495 (diff)
Resolve "Falsche Migrationsnummer, Migration ignoriert das Tabellenschema"
Closes #3669 Merge request studip/studip!2542
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.1.53_cleanup_cw_tasks.php (renamed from db/migrations/5.5.14_cleanup_cw_tasks.php)2
-rw-r--r--db/migrations/5.5.14_cleanup_cw_tasks_placeholder.php17
2 files changed, 18 insertions, 1 deletions
diff --git a/db/migrations/5.5.14_cleanup_cw_tasks.php b/db/migrations/5.1.53_cleanup_cw_tasks.php
index 94ab019..8df653d 100644
--- a/db/migrations/5.5.14_cleanup_cw_tasks.php
+++ b/db/migrations/5.1.53_cleanup_cw_tasks.php
@@ -11,7 +11,7 @@ final class CleanupCwTasks extends Migration
{
DBManager::get()->exec('
DELETE FROM `cw_tasks`
- WHERE `solver_type` = "user"
+ WHERE `solver_type` = "autor"
AND `solver_id` NOT IN (SELECT `user_id` FROM `auth_user_md5`)'
);
DBManager::get()->exec('
diff --git a/db/migrations/5.5.14_cleanup_cw_tasks_placeholder.php b/db/migrations/5.5.14_cleanup_cw_tasks_placeholder.php
new file mode 100644
index 0000000..cba0d26
--- /dev/null
+++ b/db/migrations/5.5.14_cleanup_cw_tasks_placeholder.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * This migration only exists as a placeholder for the original
+ * migration 5.5.14 which has been renumbered to 5.1.53 as it was
+ * downported.
+ * As everything has already been done in 5.1.53, nothing happens here.
+ *
+ * @see https://gitlab.studip.de/studip/studip/-/issues/3669
+ */
+
+final class CleanupCwTasksPlaceholder extends Migration
+{
+ public function description()
+ {
+ return 'empty placeholder for former migration with wrong number -> see 5.1.53';
+ }
+}