Removed unfinished leftovers of priority voting and polls.
This commit is contained in:
parent
f62c852143
commit
d43cb6f794
18 changed files with 23 additions and 642 deletions
12
database/2023_01_01_035133_nuke_old_wip_forum_components.php
Normal file
12
database/2023_01_01_035133_nuke_old_wip_forum_components.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
namespace Misuzu\DatabaseMigrations\NukeOldWipForumComponents;
|
||||
|
||||
use PDO;
|
||||
|
||||
function migrate_up(PDO $conn): void {
|
||||
$conn->exec('ALTER TABLE `msz_forum_topics` DROP COLUMN `poll_id`, DROP INDEX `posts_poll_id_foreign`, DROP FOREIGN KEY `posts_poll_id_foreign`;');
|
||||
$conn->exec('DROP TABLE msz_forum_polls_answers;');
|
||||
$conn->exec('DROP TABLE msz_forum_polls_options;');
|
||||
$conn->exec('DROP TABLE msz_forum_polls;');
|
||||
$conn->exec('DROP TABLE msz_forum_topics_priority;');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue