Skip to content

Commit

Permalink
Tarantool migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Nov 12, 2023
1 parent f059c1e commit 39f1bb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion db/app.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,7 @@ box.once('bootstrap', function()
oauth_bootstrap()
server_tokens_bootstrap()
cryptostore_bootstrap()
reg_pollers_bootstrap()
end)

print('applying migrations...')
reg_pollers_migration_v1()
5 changes: 4 additions & 1 deletion db/reg_pollers.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
fiber = require 'fiber'

function reg_pollers_bootstrap()
function reg_pollers_migration_v1()
if box.space.reg_pollers ~= nil then
return
end
box.schema.sequence.create('reg_pollers')
reg_pollers = box.schema.create_space('reg_pollers', {
format = {
Expand Down

0 comments on commit 39f1bb4

Please sign in to comment.