Migrations/Tables
Last updated
Last updated
Commenter publishes following three migrations/tables. When migrating these tables, name collisions may occur if your project already uses the same table names as Commenter's tables. This page provides guidance on how to avoid such collisions.
Migration Name | Table Name |
---|---|
Imagine your project already has a comments
table, and you want to rename Commenter's comments
table to lakm_comments
.
Create a model.
Extend the model with the relevant base model. You can find the respective base models in the config/commenter.php
configuration file. Then, define the table name in the $table
property, with the public accessible.
Go to config/comment.php file and change the relevant model class.
Go to the relevant migration file and change the table name.
Though it is not necessary, it is recommended to rename the migration file as well. In the above example, it can be renamed to {timestamp}_create_lakm_comments_table.php
.
comments
guests
reactions