You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
544 B
PHP
18 lines
544 B
PHP
<?php
|
|
|
|
namespace v200\MigrateIpAndEmailBans;
|
|
|
|
|
|
class DropOldIpBansTable extends \AbstractMigration {
|
|
|
|
function up($hesk_settings) {
|
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "denied_ips`");
|
|
}
|
|
|
|
function down($hesk_settings) {
|
|
$this->executeQuery("CREATE TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "denied_ips` (
|
|
`ID` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
`RangeStart` VARCHAR(100) NOT NULL,
|
|
`RangeEnd` VARCHAR(100) NOT NULL)");
|
|
}
|
|
} |