Sha256: 876a47133fecb613cb36a36da0983dfe4ba900d68a989dd9f0c6a43cf4d5fea1

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

Sequel.migration do
  up do
    lex = from(:extensions).insert(namespace: 'Legion::Extensions::Lex', name: 'lex', exchange: 'lex', uri: 'lex')
    [
      { extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Register', name: 'register', queue: 'register', uri: 'register' },
      { extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Function', name: 'function', queue: 'function', uri: 'function' },
      { extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Runner', name: 'runner', queue: 'runner', uri: 'runner' },
      { extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Extension', name: 'extension', queue: 'extension', uri: 'extension' }
    ].each do |row|
      from(:runners).insert row
    end

    lex = from(:extensions).insert(namespace: 'Legion::Extensions::Node', name: 'node', exchange: 'node', uri: 'node')
    [
      { extension_id: lex, namespace: 'Legion::Extensions::Node::Runners::Crypt', name: 'crypt', queue: 'crypt', uri: 'crypt' }
    ].each do |row|
      from(:runners).insert row
    end
  end
  down do
    from(:extensions).where(namespace: 'Legion::Extensions::Lex').delete
    from(:extensions).where(namespace: 'Legion::Extensions::Node').delete
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
legion-data-1.1.5 lib/legion/data/migrations/015_add_default_extensions.rb
legion-data-1.1.4 lib/legion/data/migrations/015_add_default_extensions.rb
legion-data-java-1.1.3 lib/legion/data/migrations/015_add_default_extensions.rb
legion-data-1.1.3 lib/legion/data/migrations/015_add_default_extensions.rb
legion-data-java-1.1.2 lib/legion/data/migrations/015_add_default_extensions.rb
legion-data-1.1.2 lib/legion/data/migrations/015_add_default_extensions.rb