mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
17 lines
384 B
PHP
17 lines
384 B
PHP
<?php
|
|
/**
|
|
* @var OTS_DB_MySQL $db
|
|
*/
|
|
|
|
$up = function () use ($db) {
|
|
if (!$db->hasColumn(TABLE_PREFIX . 'monsters', 'id')) {
|
|
$db->addColumn(TABLE_PREFIX . 'monsters', 'id', "int(11) NOT NULL AUTO_INCREMENT primary key FIRST");
|
|
}
|
|
};
|
|
|
|
$down = function () use ($db) {
|
|
if ($db->hasColumn(TABLE_PREFIX . 'monsters', 'id')) {
|
|
$db->dropColumn(TABLE_PREFIX . 'monsters', 'id');
|
|
}
|
|
};
|