<commit_before># coding: utf-8
class CreateBxIndexDefs < ActiveRecord::Migration
  def change
    create_table :bx_index_defs do |t|
      t.integer :lock_version, :null => false, :default => 0
      t.timestamps

      t.integer :table_id, :null => false, :default => 0
      t.string :logical_name, :null => false, :default => ""
      t.string :physical_name, :null => false, :default => ""
      t.text :description, :null => false, :default => ""
    end

    add_index :bx_index_defs, :table_id
    add_index :bx_index_defs, [:table_id, :physical_name], :unique => true
  end
end<commit_msg>add unique column to bx_index_defs.<commit_after># coding: utf-8
class CreateBxIndexDefs < ActiveRecord::Migration
  def change
    create_table :bx_index_defs do |t|
      t.integer :lock_version, :null => false, :default => 0
      t.timestamps

      t.integer :table_id, :null => false, :default => 0
      t.string :logical_name, :null => false, :default => ""
      t.string :physical_name, :null => false, :default => ""
      t.boolean :unique, :null => false, :default => false
      t.text :description, :null => false, :default => ""
    end

    add_index :bx_index_defs, :table_id
    add_index :bx_index_defs, [:table_id, :physical_name], :unique => true
  end
end
{'fraction_non_alphanumeric': 0.1388235294117647, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 3.508833922261484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '7233950', 'n_tokens_mistral': 448, 'n_tokens_neox': 431, 'n_words': 113}