<commit_before><?php

class m160816_132509_add_disorder_mapping extends CDbMigration
{
	public function up()
	{
        $this->addColumn('ophcocvi_clinicinfo_disorder', 'disorder_id','int(10) unsigned');
        $this->addForeignKey('ophcocvi_clinicinfo_disorder_disorder_fk',
            'ophcocvi_clinicinfo_disorder','disorder_id',
            'disorder', 'id');
        $this->addColumn('ophcocvi_clinicinfo_disorder_version', 'disorder_id','int(10) unsigned NOT NULL');
	}

	public function down()
	{
        $this->dropForeignKey('ophcocvi_clinicinfo_disorder_disorder_fk',
            'ophcocvi_clinicinfo_disorder');
        $this->dropColumn('ophcocvi_clinicinfo_disorder', 'disorder_id');
	}

}<commit_msg>+ fix version column for disorder id in migration<commit_after><?php

class m160816_132509_add_disorder_mapping extends CDbMigration
{
	public function up()
	{
        $this->addColumn('ophcocvi_clinicinfo_disorder', 'disorder_id','int(10) unsigned');
        $this->addForeignKey('ophcocvi_clinicinfo_disorder_disorder_fk',
            'ophcocvi_clinicinfo_disorder','disorder_id',
            'disorder', 'id');
        $this->addColumn('ophcocvi_clinicinfo_disorder_version', 'disorder_id','int(10) unsigned');
	}

	public function down()
	{
        $this->dropForeignKey('ophcocvi_clinicinfo_disorder_disorder_fk',
            'ophcocvi_clinicinfo_disorder');
        $this->dropColumn('ophcocvi_clinicinfo_disorder', 'disorder_id');
		$this->dropColumn('ophcocvi_clinicinfo_disorder_version', 'disorder_id');
	}

}
{'fraction_non_alphanumeric': 0.1237785016286645, 'fraction_numerical': 0.020846905537459284, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '7583590', 'n_tokens_mistral': 573, 'n_tokens_neox': 526, 'n_words': 62}