debian-mirror-gitlab/lib/gitlab/database/schema_migrations.rb

20 lines
516 B
Ruby
Raw Normal View History

2021-09-30 23:02:18 +05:30
# frozen_string_literal: true
module Gitlab
module Database
module SchemaMigrations
def self.touch_all(connection)
context = Gitlab::Database::SchemaMigrations::Context.new(connection)
Gitlab::Database::SchemaMigrations::Migrations.new(context).touch_all
end
def self.load_all(connection)
context = Gitlab::Database::SchemaMigrations::Context.new(connection)
Gitlab::Database::SchemaMigrations::Migrations.new(context).load_all
end
end
end
end