Added id to the audit logs table.

This commit is contained in:
flash 2025-02-08 02:51:03 +00:00
parent 4a3d63c065
commit a0f5444292
3 changed files with 28 additions and 7 deletions

View file

@ -0,0 +1,13 @@
<?php
use Index\Db\DbConnection;
use Index\Db\Migration\DbMigration;
final class AddedLogEntryIdColumn_20250208_024836 implements DbMigration {
public function migrate(DbConnection $conn): void {
$conn->execute(<<<SQL
ALTER TABLE msz_audit_log
ADD COLUMN log_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT FIRST,
ADD PRIMARY KEY (log_id);
SQL);
}
}