portal.mkgtu.ru/common/migrations/db/m190601_121942_add_text_set...

23 lines
788 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m190601_121942_add_text_settings extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->insert('{{%text_settings}}', [
'name' => 'questionary__create_from_1C',
'description' => 'Сообщение абитуриенту о том, что анкета была создана из 1С',
'value' => 'Анкета была обновлена из ПК. Требуется проверить правильность внесённых данных.',
]);
Yii::$app->db->schema->refresh();
}
public function safeDown()
{
$this->dropTable('{{%text_settings}}');
Yii::$app->db->schema->refresh();
}
}