2017-10-03 22:05:35 -04:00
|
|
|
<?php
|
|
|
|
|
2017-10-31 17:31:03 -04:00
|
|
|
namespace v300\MigrateAutorefreshOption;
|
2017-10-03 22:05:35 -04:00
|
|
|
|
|
|
|
|
2017-10-31 17:31:03 -04:00
|
|
|
class DropOldColumn extends \AbstractMigration {
|
2017-10-03 22:05:35 -04:00
|
|
|
|
|
|
|
function up($hesk_settings) {
|
|
|
|
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` DROP COLUMN `autorefresh`");
|
|
|
|
}
|
|
|
|
|
|
|
|
function down($hesk_settings) {
|
|
|
|
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "users` ADD COLUMN `autorefresh` BIGINT NOT NULL DEFAULT 0");
|
|
|
|
}
|
|
|
|
}
|