<commit_before><?php

use yii\db\Schema;
use yii\db\Migration;

class m151230_065012_import_1c extends Migration
{
    public function up()
    {
        $this->addColumn('orders','1c_orders_id',Schema::TYPE_INTEGER);
        $this->createIndex('unique_1c_order_id', 'order', '1c_order_id', true);
        $this->createIndex('unique_1c_orders_id', 'orders', ['1c_orders_id'], true);<commit_msg>составной уникальный ключ for orders<commit_after><?php

use yii\db\Schema;
use yii\db\Migration;

class m151230_065012_import_1c extends Migration
{
    public function up()
    {
        $this->addColumn('orders','1c_orders_id',Schema::TYPE_INTEGER);
        $this->createIndex('unique_1c_order_id', 'order', '1c_order_id', true);
        $this->createIndex('unique_1c_orders_id', 'orders', ['order_id','1c_orders_id'], true);
{'fraction_non_alphanumeric': 0.15206812652068127, 'fraction_numerical': 0.043795620437956206, 'mean_word_length': 5.282442748091603, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7306379', 'n_tokens_mistral': 312, 'n_tokens_neox': 299, 'n_words': 45}