diff --git a/src/migrations/m200330_154820_add_comment_table.sql b/src/migrations/m200330_154820_add_comment_table.sql index 81cefbd..1562718 100644 --- a/src/migrations/m200330_154820_add_comment_table.sql +++ b/src/migrations/m200330_154820_add_comment_table.sql @@ -1,4 +1,4 @@ -CREATE TABLE IF NOT EXISTS `stg_comment` ( +CREATE TABLE IF NOT EXISTS `comment` ( `id` INT NOT NULL AUTO_INCREMENT, `parent_comment_id` INT NULL, `key` VARCHAR(45) NOT NULL, diff --git a/src/models/Comment.php b/src/models/Comment.php index 8aba44d..929d842 100644 --- a/src/models/Comment.php +++ b/src/models/Comment.php @@ -46,7 +46,7 @@ public function childComments(): array */ public static function tableName(): string { - return 'stg_comment'; + return 'comment'; }