Files
2025-06-11 12:11:34 +00:00

19 lines
487 B
Ruby

# frozen_string_literal: true
module ClickHouse
module SchemaMigrations
class Migrations < Gitlab::Database::SchemaMigrations::Migrations
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
end
end
end