Skip to content

Create Groups::RepositoryStorageMove class

What does this MR do?

In this MR we create the Groups::RepositoryStorageMove table in the database and class. The class is very basic and most of it will be added in the follow-up issue #299054 (closed).

This MR is part of the main epic &5166 (closed)

Refs #299053 (closed)

Migrate Up

== 20210115090452 CreateGroupRepositoryStorageMove: migrating =================
-- table_exists?(:group_repository_storage_moves)
   -> 0.0007s
-- create_table(:group_repository_storage_moves)
   -> 0.0386s
-- transaction_open?()
   -> 0.0000s
-- current_schema()
   -> 0.0002s
-- execute("ALTER TABLE group_repository_storage_moves\nADD CONSTRAINT group_repository_storage_moves_source_storage_name\nCHECK ( char_length(source_storage_name) <= 255 )\nNOT VALID;\n")
   -> 0.0007s
-- current_schema()
   -> 0.0001s
-- execute("SET statement_timeout TO 0")
   -> 0.0001s
-- execute("ALTER TABLE group_repository_storage_moves VALIDATE CONSTRAINT group_repository_storage_moves_source_storage_name;")
   -> 0.0004s
-- execute("RESET ALL")
   -> 0.0001s
-- transaction_open?()
   -> 0.0000s
-- current_schema()
   -> 0.0001s
-- execute("ALTER TABLE group_repository_storage_moves\nADD CONSTRAINT group_repository_storage_moves_destination_storage_name\nCHECK ( char_length(destination_storage_name) <= 255 )\nNOT VALID;\n")
   -> 0.0002s
-- current_schema()
   -> 0.0001s
-- execute("ALTER TABLE group_repository_storage_moves VALIDATE CONSTRAINT group_repository_storage_moves_destination_storage_name;")
   -> 0.0003s
== 20210115090452 CreateGroupRepositoryStorageMove: migrated (0.0542s) ========

Migrate Down

== 20210115090452 CreateGroupRepositoryStorageMove: reverting =================
-- drop_table(:group_repository_storage_moves)
   -> 0.0037s
== 20210115090452 CreateGroupRepositoryStorageMove: reverted (0.0109s) ========

Does this MR meet the acceptance criteria?

Conformity

Merge request reports