Added id to the audit logs table.
This commit is contained in:
parent
4a3d63c065
commit
a0f5444292
3 changed files with 28 additions and 7 deletions
13
database/2025_02_08_024836_added_log_entry_id_column.php
Normal file
13
database/2025_02_08_024836_added_log_entry_id_column.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue