mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
19 lines
487 B
Ruby
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
|