Sha256: 53e664bdeb3146feead8e45b44ff5cb1891f1fa5cc2747abe959ed7def10a701

Contents?: true

Size: 798 Bytes

Versions: 2

Compression:

Stored size: 798 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `functions` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `version` int(11) unsigned NOT NULL DEFAULT '1',
  `name` varchar(128) NOT NULL DEFAULT '',
  `namespace_id` int(11) unsigned NOT NULL,
  `args` text,
  `user_owner` int(11) unsigned DEFAULT NULL,
  `group_owner` int(11) unsigned DEFAULT NULL,
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `namespace_id` (`namespace_id`,`name`),
  KEY `active` (`active`),
  KEY `namespace` (`namespace_id`),
  KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  end

  down do
    drop_table :functionss
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/migrations/005_add_functions_table.rb
legion-data-0.1.0 lib/legion/data/migrations/005_add_functions_table.rb