Skip to content

Commit

Permalink
use yii2 table name prefix syntax in migrations and add extra div in …
Browse files Browse the repository at this point in the history
…expired view #8
  • Loading branch information
handcode committed Feb 15, 2023
1 parent 570c8ac commit 80d016b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ class m201012_141325_alter_app_dmstr_contact_template_table extends Migration
{
public function safeUp()
{
$this->addColumn('app_dmstr_contact_template','captcha', $this->boolean()->notNull()->defaultValue(null)->after('email_subject'));
$this->addColumn('{{%dmstr_contact_template}}','captcha', $this->boolean()->notNull()->defaultValue(null)->after('email_subject'));
}

public function safeDown()
{
$this->dropColumn('app_dmstr_contact_template','captcha');
$this->dropColumn('{{%dmstr_contact_template}}','captcha');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class m230214_071325_add_return_path_2_app_dmstr_contact_template_table extends
public function safeUp()
{

$this->addColumn('app_dmstr_contact_template','return_path', $this->string()->null()->defaultValue(null)->after('to_email'));
$this->addColumn('{{%dmstr_contact_template}}','return_path', $this->string()->null()->defaultValue(null)->after('to_email'));
}

public function safeDown()
{
$this->dropColumn('app_dmstr_contact_template','return_path');
$this->dropColumn('{{%dmstr_contact_template}}','return_path');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class m230214_081325_add_reply_to_schema_property_2_app_dmstr_contact_template_t
public function safeUp()
{

$this->addColumn('app_dmstr_contact_template','reply_to_schema_property', $this->string()->null()->defaultValue(null)->after('return_path'));
$this->addColumn('{{%dmstr_contact_template}}','reply_to_schema_property', $this->string()->null()->defaultValue(null)->after('return_path'));
}

public function safeDown()
{
$this->dropColumn('app_dmstr_contact_template','reply_to_schema_property');
$this->dropColumn('{{%dmstr_contact_template}}','reply_to_schema_property');
}
}
8 changes: 5 additions & 3 deletions src/views/default/done-expired.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@

<div class="container text-center">
<div class="row">
<div class=" col-xs-12 alert alert-success">
<?= Yii::t('contact', "The message has already been sent.") ?>
</div>
<div class=" col-xs-12">
<div class="alert alert-success">
<?= Yii::t('contact', "The message has already been sent.") ?>
</div>
</div>
</div>
</div>

0 comments on commit 80d016b

Please sign in to comment.