15 lines
459 B
PHP
Raw Normal View History

2017-10-03 13:17:12 -04:00
<?php
2017-10-31 08:11:37 -04:00
namespace v250\AddUserAgentAndScreenResToTickets;
2017-10-03 13:17:12 -04:00
2017-10-31 08:11:37 -04:00
class AddUserAgentToTickets extends \AbstractMigration {
2017-10-03 13:17:12 -04:00
function up($hesk_settings) {
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` ADD COLUMN `user_agent` TEXT");
}
function down($hesk_settings) {
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "tickets` DROP COLUMN `user_agent`");
}
}