mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
17 lines
368 B
PHP
17 lines
368 B
PHP
<?php
|
|
/**
|
|
* @var OTS_DB_MySQL $db
|
|
*/
|
|
|
|
$up = function () use ($db) {
|
|
if (!$db->hasColumn(TABLE_PREFIX . 'hooks', 'enabled')) {
|
|
$db->addColumn(TABLE_PREFIX . 'hooks', 'enabled', 'INT(1) NOT NULL DEFAULT 1');
|
|
}
|
|
};
|
|
|
|
$down = function () use ($db) {
|
|
if ($db->hasColumn(TABLE_PREFIX . 'hooks', 'enabled')) {
|
|
$db->dropColumn(TABLE_PREFIX . 'hooks', 'enabled');
|
|
}
|
|
};
|