Skip to content

Commit

Permalink
add migrations support
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliy-t committed Oct 16, 2020
1 parent 0fb50d4 commit c4bae7d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion crud-storage/crud-storage-scm-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ dependencies = {
'checks == 3.0.1-1',
'cartridge == 2.3.0-1',
'metrics == 0.5.0-1',
'crud >= 0.1.0-1'
'crud >= 0.1.0-1',
'migrations == 0.3.1-1'
}
build = {
type = 'none';
Expand Down
2 changes: 1 addition & 1 deletion crud-storage/helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Tarantool CRUD
name: crud-storage
version: 0.0.3
version: 0.0.4
dependencies:
- name: tarantool-operator
version: "0.0.7"
Expand Down
3 changes: 2 additions & 1 deletion crud-storage/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ClusterName: tarantool-crud

image:
repository: vasiliyt/tarantool-crud
tag: 0.0.2
tag: 0.0.3
pullPolicy: IfNotPresent

service:
Expand All @@ -27,3 +27,4 @@ RoleConfig:
- crud-storage
- vshard-router
- metrics
- migrator
7 changes: 6 additions & 1 deletion crud-storage/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ local ok, err = cartridge.cfg({
'cartridge.roles.vshard-storage',
'cartridge.roles.vshard-router',
'cartridge.roles.metrics',
'cartridge.roles.crud-storage'
'cartridge.roles.crud-storage',
'migrator'
},
cluster_cookie = 'myapp-cluster-cookie',
})

assert(ok, tostring(err))

local migrator = require('migrator')
local config_loader = require('migrator.config-loader').new()
migrator.set_loader(config_loader)

0 comments on commit c4bae7d

Please sign in to comment.