├── .gitignore ├── .travis.yml ├── LICENSE.txt ├── Makefile ├── README.md ├── assets_test.go ├── cmd └── gloat │ └── main.go ├── executor.go ├── executor_test.go ├── gloat.go ├── gloat_test.go ├── go.mod ├── go.sum ├── migration.go ├── migration_options.go ├── migration_options_test.go ├── migration_test.go ├── source.go ├── source_test.go ├── store.go ├── store_test.go └── testdata └── migrations ├── 20170329154959_introduce_domain_model ├── down.sql └── up.sql ├── 20170511172647_irreversible_migration_brah └── up.sql ├── 20180905150724_concurrent_migration ├── down.sql ├── options.json └── up.sql └── 20180920181906_migration_with_an_error ├── down.sql └── up.sql /.gitignore: -------------------------------------------------------------------------------- 1 | .envrc 2 | .tags 3 | .vagrant/ 4 | bin/ 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/README.md -------------------------------------------------------------------------------- /assets_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/assets_test.go -------------------------------------------------------------------------------- /cmd/gloat/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/cmd/gloat/main.go -------------------------------------------------------------------------------- /executor.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/executor.go -------------------------------------------------------------------------------- /executor_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/executor_test.go -------------------------------------------------------------------------------- /gloat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/gloat.go -------------------------------------------------------------------------------- /gloat_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/gloat_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/go.sum -------------------------------------------------------------------------------- /migration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/migration.go -------------------------------------------------------------------------------- /migration_options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/migration_options.go -------------------------------------------------------------------------------- /migration_options_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/migration_options_test.go -------------------------------------------------------------------------------- /migration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/migration_test.go -------------------------------------------------------------------------------- /source.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/source.go -------------------------------------------------------------------------------- /source_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/source_test.go -------------------------------------------------------------------------------- /store.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/store.go -------------------------------------------------------------------------------- /store_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/store_test.go -------------------------------------------------------------------------------- /testdata/migrations/20170329154959_introduce_domain_model/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE users; 2 | -------------------------------------------------------------------------------- /testdata/migrations/20170329154959_introduce_domain_model/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/testdata/migrations/20170329154959_introduce_domain_model/up.sql -------------------------------------------------------------------------------- /testdata/migrations/20170511172647_irreversible_migration_brah/up.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE users ADD COLUMN token character varying; 2 | -------------------------------------------------------------------------------- /testdata/migrations/20180905150724_concurrent_migration/down.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/migrations/20180905150724_concurrent_migration/options.json: -------------------------------------------------------------------------------- 1 | { 2 | "transaction": false 3 | } 4 | -------------------------------------------------------------------------------- /testdata/migrations/20180905150724_concurrent_migration/up.sql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/migrations/20180920181906_migration_with_an_error/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABL users; 2 | -------------------------------------------------------------------------------- /testdata/migrations/20180920181906_migration_with_an_error/up.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gsamokovarov/gloat/HEAD/testdata/migrations/20180920181906_migration_with_an_error/up.sql --------------------------------------------------------------------------------