15 lines
469 B
PHP
Raw Normal View History

2017-10-01 22:03:09 -04:00
<?php
namespace v160\AddEditInfoToNotes;
2017-10-01 22:03:09 -04:00
class AddNumberOfEditsColumn extends \AbstractMigration {
2017-10-01 22:03:09 -04:00
function up($hesk_settings) {
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "notes` ADD COLUMN `number_of_edits` INT NOT NULL DEFAULT 0");
}
function down($hesk_settings) {
$this->executeQuery("ALTER TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "notes` DROP COLUMN `number_of_edits`");
}
}