mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 03:39:20 +02:00
16 lines
361 B
PHP
16 lines
361 B
PHP
<?php
|
|
/**
|
|
* @var OTS_DB_MySQL $db
|
|
*/
|
|
|
|
$up = function () use ($db) {
|
|
if (!$db->hasColumn(TABLE_PREFIX . 'account_actions', 'ipv6')) {
|
|
$db->addColumn(TABLE_PREFIX . 'account_actions', 'ipv6', "BINARY(16) NOT NULL DEFAULT 0");
|
|
}
|
|
};
|
|
|
|
$down = function () use ($db) {
|
|
// we don't want data loss
|
|
//$db->dropColumn(TABLE_PREFIX . 'account_actions', 'ipv6');
|
|
};
|