<commit_before>require 'carto/db/migration_helper'

include Carto::Db::MigrationHelper

migration(
  Proc.new do
    create_table :layer_node_styles do
      primary_key :id, type: :uuid, default: 'uuid_generate_v4()'.lit
      foreign_key :layer_id, :layers, type: :uuid, on_delete: :cascade
      String      :source_id
      json        :options
      json        :infowindow
      json        :tooltip
      unique      [:layer_id, :source_id]
    end
  end,
  Proc.new do
    drop_table :layer_node_styles
  end
)<commit_msg>Add simple_geom to LayerNodeStyles<commit_after>require 'carto/db/migration_helper'

include Carto::Db::MigrationHelper

migration(
  Proc.new do
    create_table :layer_node_styles do
      primary_key :id, type: :uuid, default: 'uuid_generate_v4()'.lit
      foreign_key :layer_id, :layers, type: :uuid, null: false, on_delete: :cascade
      String      :source_id, null: false
      String      :simple_geom
      json        :options, null: false
      json        :infowindow, null: false
      json        :tooltip, null: false
      unique      [:layer_id, :source_id]
    end
  end,
  Proc.new do
    drop_table :layer_node_styles
  end
)
{'fraction_non_alphanumeric': 0.08920985556499575, 'fraction_numerical': 0.0016992353440951572, 'mean_word_length': 2.8122977346278315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7654778', 'n_tokens_mistral': 393, 'n_tokens_neox': 387, 'n_words': 97}