tarantool / migrations

BSD 2-Clause "Simplified" License
21 stars 5 forks source link

directory-loader.lua:19: Path is not valid #44

Closed rosik closed 3 years ago

rosik commented 3 years ago
Unhandled error: .../.rocks/share/tarantool/migrator/directory-loader.lua:19: Path /opt/myapp/migrations is not valid                                                                           
stack traceback:      
        /opt/myapp/.rocks/share/tarantool/http/server.lua:743: in function 'process_client'  
        /opt/myapp/.rocks/share/tarantool/http/server.lua:1199: in function </opt/myapp/.rocks/share/tarantool/http/server.lua:1198>                                                       
        [C]: in function 'pcall'
        builtin/socket.lua:1081: in function <builtin/socket.lua:1079>    

The module doesn't work if the migrations directory is missing. I think this restriction is unnecessary. I can put the code into the clusterwide config.

rosik commented 3 years ago

I didn't read the readme carefully