migrations
migrations copied to clipboard
Bootstrap-generator - generate initial migration based on existing schema
Can you add several examples.
Smth like
tarantool> require('migrations').bootstrap({url='localhost:3301', file='./00-bootstrap-schema.lua'})
---
- |-
box.schema.create_space('test')
box.space.test.create_index('primary')
A helper that traverses existing instance and prepares .lua containing relevat ddl statements.
https://stackoverflow.com/questions/1884758/generate-ddl-programmatically-on-postgresql