Class: ClickHouse::SchemaMigrations::Migrations
- Inherits:
-
Gitlab::Database::SchemaMigrations::Migrations
- Object
- Gitlab::Database::SchemaMigrations::Migrations
- ClickHouse::SchemaMigrations::Migrations
- Defined in:
- lib/click_house/schema_migrations/migrations.rb
Constant Summary
Constants inherited from Gitlab::Database::SchemaMigrations::Migrations
Gitlab::Database::SchemaMigrations::Migrations::MIGRATION_VERSION_GLOB
Instance Method Summary collapse
Methods inherited from Gitlab::Database::SchemaMigrations::Migrations
Constructor Details
This class inherits a constructor from Gitlab::Database::SchemaMigrations::Migrations
Instance Method Details
#load_all ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/click_house/schema_migrations/migrations.rb', line 6 def load_all return if version_filenames.empty? schema_migration = ClickHouse::MigrationSupport::SchemaMigration.new(@context.connection) schema_migration.ensure_table version_filenames.each do |version| schema_migration.create!(version: version.to_s) end end |