From 80d016b4312c3ae75bfb725ad1c6af1148aa2a01 Mon Sep 17 00:00:00 2001 From: Jens Giessmann Date: Wed, 15 Feb 2023 13:05:17 +0100 Subject: [PATCH] use yii2 table name prefix syntax in migrations and add extra div in expired view #8 --- ...1012_141325_alter_app_dmstr_contact_template_table.php | 4 ++-- ...add_return_path_2_app_dmstr_contact_template_table.php | 4 ++-- ...schema_property_2_app_dmstr_contact_template_table.php | 4 ++-- src/views/default/done-expired.php | 8 +++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/migrations/m201012_141325_alter_app_dmstr_contact_template_table.php b/src/migrations/m201012_141325_alter_app_dmstr_contact_template_table.php index 379c73f..86181cb 100644 --- a/src/migrations/m201012_141325_alter_app_dmstr_contact_template_table.php +++ b/src/migrations/m201012_141325_alter_app_dmstr_contact_template_table.php @@ -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'); } } diff --git a/src/migrations/m230214_071325_add_return_path_2_app_dmstr_contact_template_table.php b/src/migrations/m230214_071325_add_return_path_2_app_dmstr_contact_template_table.php index 2e23abd..b4caf09 100644 --- a/src/migrations/m230214_071325_add_return_path_2_app_dmstr_contact_template_table.php +++ b/src/migrations/m230214_071325_add_return_path_2_app_dmstr_contact_template_table.php @@ -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'); } } diff --git a/src/migrations/m230214_081325_add_reply_to_schema_property_2_app_dmstr_contact_template_table.php b/src/migrations/m230214_081325_add_reply_to_schema_property_2_app_dmstr_contact_template_table.php index 088f576..99d5200 100644 --- a/src/migrations/m230214_081325_add_reply_to_schema_property_2_app_dmstr_contact_template_table.php +++ b/src/migrations/m230214_081325_add_reply_to_schema_property_2_app_dmstr_contact_template_table.php @@ -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'); } } diff --git a/src/views/default/done-expired.php b/src/views/default/done-expired.php index 77cacc8..39a0796 100644 --- a/src/views/default/done-expired.php +++ b/src/views/default/done-expired.php @@ -12,8 +12,10 @@
-
- -
+
+
+ +
+