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.
15 lines
557 B
PHP
15 lines
557 B
PHP
<?php
|
|
|
|
namespace v330\CalendarImprovements;
|
|
|
|
class AddBusinessHoursTable extends \AbstractUpdatableMigration {
|
|
|
|
function innerUp($hesk_settings) {
|
|
$this->executeQuery("CREATE TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`
|
|
(`day_of_week` INT NOT NULL, `start_time` VARCHAR(5) NOT NULL, `end_time` VARCHAR(5) NOT NULL)");
|
|
}
|
|
|
|
function innerDown($hesk_settings) {
|
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`");
|
|
}
|
|
} |