diff --git a/migrations/m241211_100136_template_instance.php b/migrations/m241211_100136_template_instance.php new file mode 100644 index 00000000..2e800945 --- /dev/null +++ b/migrations/m241211_100136_template_instance.php @@ -0,0 +1,25 @@ +renameTable('custom_pages_template_container', 'custom_pages_template_instance'); + } + + /** + * {@inheritdoc} + */ + public function safeDown() + { + $this->safeDropTable('custom_pages_template_records_content'); + } +} diff --git a/migrations/uninstall.php b/migrations/uninstall.php index b95d636b..2cb1bee4 100644 --- a/migrations/uninstall.php +++ b/migrations/uninstall.php @@ -17,7 +17,7 @@ public function up() $this->safeDropTable('custom_pages_template_file_download_content'); $this->safeDropTable('custom_pages_template_element'); $this->safeDropTable('custom_pages_template_owner_content'); - $this->safeDropTable('custom_pages_template_container'); + $this->safeDropTable('custom_pages_template_instance'); $this->safeDropTable('custom_pages_template_container_content_definition'); $this->safeDropTable('custom_pages_template_image_content_definition'); $this->safeDropTable('custom_pages_template'); diff --git a/modules/template/models/TemplateInstance.php b/modules/template/models/TemplateInstance.php index 0d8e07f9..de355eba 100644 --- a/modules/template/models/TemplateInstance.php +++ b/modules/template/models/TemplateInstance.php @@ -38,7 +38,7 @@ public function behaviors() */ public static function tableName() { - return 'custom_pages_template_container'; + return 'custom_pages_template_instance'; } /**