diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-29 18:10:34 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-29 18:10:34 +0300 |
commit | 9a8093da816c96e2bab9812c2f00ef276270793b (patch) | |
tree | d26b633b4512a0b29955db4e625cce9ceb1e5bce /gems/gitlab-schema-validation/lib | |
parent | 6e222a0e1681d746bf508a6cccc0bbe49e145c2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems/gitlab-schema-validation/lib')
-rw-r--r-- | gems/gitlab-schema-validation/lib/gitlab/schema/validation/inconsistency.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gems/gitlab-schema-validation/lib/gitlab/schema/validation/inconsistency.rb b/gems/gitlab-schema-validation/lib/gitlab/schema/validation/inconsistency.rb index 13799b8b9ff..503e05f12e9 100644 --- a/gems/gitlab-schema-validation/lib/gitlab/schema/validation/inconsistency.rb +++ b/gems/gitlab-schema-validation/lib/gitlab/schema/validation/inconsistency.rb @@ -36,6 +36,17 @@ module Gitlab Diffy::Diff.new(structure_sql_statement, database_statement) end + def to_h + { + type: type, + object_type: object_type, + table_name: table_name, + object_name: object_name, + structure_sql_statement: structure_sql_statement, + database_statement: database_statement + } + end + def display <<~MSG #{'-' * 54} |