Sha256: 3d718d4cfe361b86dd2776931c3cc2e21d0d14f6ed484742ee73517a20da30ff

Contents?: true

Size: 785 Bytes

Versions: 1

Compression:

Stored size: 785 Bytes

Contents

Sequel.migration do
  up do
    run "CREATE TABLE `extensions` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `active` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `name` varchar(128) NOT NULL,
  `namespace` varchar(128) NOT NULL DEFAULT '',
  `exchange` varchar(255) DEFAULT NULL,
  `uri` varchar(256) DEFAULT NULL,
  `user_owner` int(11) unsigned DEFAULT NULL,
  `group_owner` int(11) unsigned DEFAULT NULL,
  `updated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_namespace` (`name`,`namespace`),
  KEY `active` (`active`),
  KEY `name` (`name`),
  KEY `namespace` (`namespace`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
  end

  down do
    drop :extensions
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-data-0.2.0 lib/legion/data/migrations/009_add_extensions.rb