aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-08-20 09:34:31 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-01 16:43:43 +0200
commit780a6e562f17dbaa0beb9622915864398151c104 (patch)
tree8cefb5e298e212ce12bfbae7ff615aa0b81b5385 /db
parent7e887e77867c9506f27961973115a71ce3de869f (diff)
remove table wiki_links via migration, fixes #5833
Closes #5833 Merge request studip/studip!4446
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.5.34_remove_table_wiki_links.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/db/migrations/5.5.34_remove_table_wiki_links.php b/db/migrations/5.5.34_remove_table_wiki_links.php
new file mode 100644
index 0000000..961a5b4
--- /dev/null
+++ b/db/migrations/5.5.34_remove_table_wiki_links.php
@@ -0,0 +1,25 @@
+<?php
+final class RemoveTableWikiLinks extends Migration
+{
+ public function description()
+ {
+ return 'Removes the table "wiki_links"';
+ }
+
+ protected function up()
+ {
+ $query = "DROP TABLE `wiki_links`";
+ DBManager::get()->exec($query);
+ }
+
+ protected function down()
+ {
+ $query = "CREATE TABLE `wiki_links` (
+ `range_id` CHAR(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '',
+ `from_page_id` INT(10) UNSIGNED NOT NULL,
+ `to_page_id` INT(10) UNSIGNED NOT NULL,
+ PRIMARY KEY (`range_id`,`to_page_id`,`from_page_id`)
+ )";
+ DBManager::get()->exec($query);
+ }
+}