Made timestamps be at the end of the users table like every other table.

This commit is contained in:
flash 2025-02-08 23:24:29 +00:00
parent 372797c564
commit 7f85abba6e
4 changed files with 30 additions and 17 deletions

View file

@ -0,0 +1,13 @@
<?php
use Index\Db\DbConnection;
use Index\Db\Migration\DbMigration;
final class RearrangedSomeFieldsInTheUsersTable_20250208_232136 implements DbMigration {
public function migrate(DbConnection $conn): void {
$conn->execute(<<<SQL
ALTER TABLE msz_users
CHANGE COLUMN user_title user_title VARCHAR(64) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_520_ci' AFTER user_colour,
CHANGE COLUMN user_display_role_id user_display_role_id INT(10) UNSIGNED NULL DEFAULT NULL AFTER user_title;
SQL);
}
}