From bcbc2813c1541ec2e65a5d17d19d7623d263efcf Mon Sep 17 00:00:00 2001 From: Raimund Hook Date: Wed, 14 Sep 2022 13:41:29 +0100 Subject: [PATCH] Add reject_non_dco_commits to push_rules Signed-off-by: Raimund Hook Changelog: changed --- ...20914112457_add_reject_non_dco_commits_to_push_rules.rb | 7 +++++++ db/schema_migrations/20220914112457 | 1 + db/structure.sql | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb create mode 100644 db/schema_migrations/20220914112457 diff --git a/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb b/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb new file mode 100644 index 00000000000000..57b3c209660556 --- /dev/null +++ b/db/migrate/20220914112457_add_reject_non_dco_commits_to_push_rules.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddRejectNonDcoCommitsToPushRules < Gitlab::Database::Migration[2.0] + def change + add_column :push_rules, :reject_non_dco_commits, :boolean + end +end diff --git a/db/schema_migrations/20220914112457 b/db/schema_migrations/20220914112457 new file mode 100644 index 00000000000000..ab67d0abb99026 --- /dev/null +++ b/db/schema_migrations/20220914112457 @@ -0,0 +1 @@ +766866e84cdafce6506f18e574e1cfb760a581fa7464ce7e29c31d9778c687c0 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 825cf6b9142fac..f06d9d1ac22cf1 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -20506,7 +20506,8 @@ CREATE TABLE push_rules ( reject_unsigned_commits boolean, commit_committer_check boolean, regexp_uses_re2 boolean DEFAULT true, - commit_message_negative_regex character varying + commit_message_negative_regex character varying, + reject_non_dco_commits boolean ); CREATE SEQUENCE push_rules_id_seq -- GitLab