<commit_before><?php

use yii\db\Migration;

class m161109_092304_rename_comment_table extends Migration
{
    public function up()
    {
        $this->renameTable('{{%Comment}}', '{{%comment}}');
    }

    public function down()
    {
        $this->renameTable('{{%comment}}', '{{%Comment}}');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}<commit_msg>fix issue 'table already exists' for windows<commit_after><?php

use yii\db\Migration;

class m161109_092304_rename_comment_table extends Migration
{
    public function up()
    {
        if (Yii::$app->db->schema->getTableSchema('comment') === null) {
            $this->renameTable('{{%Comment}}', "{{%comment}}");
        }
    }

    public function down()
    {
        if (Yii::$app->db->schema->getTableSchema('Comment') === null) {
            $this->renameTable('{{%comment}}', '{{%Comment}}');
        }
    }
}
{'fraction_non_alphanumeric': 0.17542120911793854, 'fraction_numerical': 0.023785926660059464, 'mean_word_length': 2.7686567164179103, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6714009', 'n_tokens_mistral': 335, 'n_tokens_neox': 327, 'n_words': 61}