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.
20 lines
662 B
PHTML
20 lines
662 B
PHTML
7 years ago
|
<?php
|
||
|
|
||
7 years ago
|
namespace v310\AddCustomNavElements;
|
||
7 years ago
|
|
||
|
|
||
7 years ago
|
class CreateCustomNavElementToTextTable extends \AbstractMigration {
|
||
7 years ago
|
|
||
|
function up($hesk_settings) {
|
||
|
$this->executeQuery("CREATE TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "custom_nav_element_to_text`
|
||
|
(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||
|
nav_element_id INT NOT NULL,
|
||
|
language VARCHAR(200) NOT NULL,
|
||
|
text VARCHAR(200) NOT NULL,
|
||
|
subtext VARCHAR(200))");
|
||
|
}
|
||
|
|
||
|
function down($hesk_settings) {
|
||
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "custom_nav_element_to_text`");
|
||
|
}
|
||
|
}
|