mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-03 04:39:20 +02:00
11 lines
308 B
PHP
11 lines
308 B
PHP
<?php
|
|
// add user_agent column into visitors
|
|
|
|
$up = function () use ($db) {
|
|
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "visitors` ADD `user_agent` VARCHAR(255) NOT NULL DEFAULT '';");
|
|
};
|
|
|
|
$down = function () use ($db) {
|
|
$db->exec('ALTER TABLE `' . TABLE_PREFIX . "monsters` DROP COLUMN `user_agent`;");
|
|
};
|