Sha256: ef4f68150f6832b1db57633c1c5cdd66a552255e51a98c8c2357887dea430332

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

require 'sequel/extensions/migration'

Sequel.migration do
  up do
    run 'ALTER TABLE `schema_info` ADD `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `version`;'
    run 'ALTER TABLE `schema_info` ADD `updated_at` TIMESTAMP  NULL  ON UPDATE CURRENT_TIMESTAMP  AFTER `created_at`;'
    run 'ALTER TABLE `schema_info` ADD `catalog` VARCHAR(255)  NULL  DEFAULT NULL  AFTER `version`;'
  end

  down do
    alter_table(:schema) do
      drop_column :catalog
      drop_column :updated_at
      drop_column :created_at
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
legion-data-0.2.0 lib/legion/data/migrations/001_add_schema_columns.rb
legion-data-0.1.1 lib/legion/data/migrations/001_add_schema_columns.rb
legion-data-0.1.0 lib/legion/data/migrations/001_add_schema_columns.rb