awaki/database/2023_01_31_001812_add_clicks_counter.php

13 lines
379 B
PHP
Raw Permalink Normal View History

2023-01-31 00:24:21 +00:00
<?php
use Index\Data\IDbConnection;
use Index\Data\Migration\IDbMigration;
final class AddClicksCounter_20230131_001812 implements IDbMigration {
public function migrate(IDbConnection $conn): void {
$conn->execute('
ALTER TABLE awk_redirects
ADD COLUMN redir_clicks BIGINT UNSIGNED NOT NULL DEFAULT 0 AFTER redir_url;
');
}
}