├── .circleci └── config.yml ├── .gitignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bin ├── setup └── test_tasks ├── config └── database.cr ├── db └── migrations │ ├── 001_create_users.cr │ ├── 002_alter_users.cr │ ├── 003_create_comments.cr │ └── 004_create_managers.cr ├── shard.yml ├── spec ├── alter_table_statement_spec.cr ├── change_null_statement_spec.cr ├── create_foreign_key_statement_spec.cr ├── create_index_statement_spec.cr ├── create_table_statement_spec.cr ├── drop_index_statement_spec.cr ├── drop_table_statement_spec.cr ├── gen │ └── migration_spec.cr ├── migration_spec.cr ├── spec_helper.cr └── support │ └── cleanup_helper.cr ├── src ├── lucky_migrator.cr ├── lucky_migrator │ ├── alter_table_statement.cr │ ├── change_null_statement.cr │ ├── column_default_helpers.cr │ ├── column_type_option_helpers.cr │ ├── create_foreign_key_statement.cr │ ├── create_index_statement.cr │ ├── create_table_statement.cr │ ├── drop_index_statement.cr │ ├── drop_table_statement.cr │ ├── index_statement_helpers.cr │ ├── migration.cr │ ├── primary_key_type.cr │ ├── references_helper.cr │ ├── runner.cr │ ├── statement_helpers.cr │ ├── tasks │ │ ├── db │ │ │ ├── create.cr │ │ │ ├── drop.cr │ │ │ ├── migrate.cr │ │ │ ├── migrate_one.cr │ │ │ ├── redo.cr │ │ │ ├── rollback.cr │ │ │ └── rollback_all.cr │ │ └── gen │ │ │ ├── migration.cr │ │ │ └── migration.ecr │ └── version.cr └── precompiled_tasks │ └── gen │ └── migration.cr └── tasks.cr /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: crystal 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/README.md -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/bin/setup -------------------------------------------------------------------------------- /bin/test_tasks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/bin/test_tasks -------------------------------------------------------------------------------- /config/database.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/config/database.cr -------------------------------------------------------------------------------- /db/migrations/001_create_users.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/db/migrations/001_create_users.cr -------------------------------------------------------------------------------- /db/migrations/002_alter_users.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/db/migrations/002_alter_users.cr -------------------------------------------------------------------------------- /db/migrations/003_create_comments.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/db/migrations/003_create_comments.cr -------------------------------------------------------------------------------- /db/migrations/004_create_managers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/db/migrations/004_create_managers.cr -------------------------------------------------------------------------------- /shard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/shard.yml -------------------------------------------------------------------------------- /spec/alter_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/alter_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/change_null_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/change_null_statement_spec.cr -------------------------------------------------------------------------------- /spec/create_foreign_key_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/create_foreign_key_statement_spec.cr -------------------------------------------------------------------------------- /spec/create_index_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/create_index_statement_spec.cr -------------------------------------------------------------------------------- /spec/create_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/create_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/drop_index_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/drop_index_statement_spec.cr -------------------------------------------------------------------------------- /spec/drop_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/drop_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/gen/migration_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/gen/migration_spec.cr -------------------------------------------------------------------------------- /spec/migration_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/migration_spec.cr -------------------------------------------------------------------------------- /spec/spec_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/spec_helper.cr -------------------------------------------------------------------------------- /spec/support/cleanup_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/spec/support/cleanup_helper.cr -------------------------------------------------------------------------------- /src/lucky_migrator.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator.cr -------------------------------------------------------------------------------- /src/lucky_migrator/alter_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/alter_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/change_null_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/change_null_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/column_default_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/column_default_helpers.cr -------------------------------------------------------------------------------- /src/lucky_migrator/column_type_option_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/column_type_option_helpers.cr -------------------------------------------------------------------------------- /src/lucky_migrator/create_foreign_key_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/create_foreign_key_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/create_index_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/create_index_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/create_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/create_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/drop_index_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/drop_index_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/drop_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/drop_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_migrator/index_statement_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/index_statement_helpers.cr -------------------------------------------------------------------------------- /src/lucky_migrator/migration.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/migration.cr -------------------------------------------------------------------------------- /src/lucky_migrator/primary_key_type.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/primary_key_type.cr -------------------------------------------------------------------------------- /src/lucky_migrator/references_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/references_helper.cr -------------------------------------------------------------------------------- /src/lucky_migrator/runner.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/runner.cr -------------------------------------------------------------------------------- /src/lucky_migrator/statement_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/statement_helpers.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/create.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/create.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/drop.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/drop.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/migrate.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/migrate.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/migrate_one.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/migrate_one.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/redo.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/redo.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/rollback.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/rollback.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/db/rollback_all.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/db/rollback_all.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/gen/migration.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/gen/migration.cr -------------------------------------------------------------------------------- /src/lucky_migrator/tasks/gen/migration.ecr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/lucky_migrator/tasks/gen/migration.ecr -------------------------------------------------------------------------------- /src/lucky_migrator/version.cr: -------------------------------------------------------------------------------- 1 | module Migrate 2 | VERSION = "0.6.0" 3 | end 4 | -------------------------------------------------------------------------------- /src/precompiled_tasks/gen/migration.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/src/precompiled_tasks/gen/migration.cr -------------------------------------------------------------------------------- /tasks.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_migrator/HEAD/tasks.cr --------------------------------------------------------------------------------