summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-16 12:09:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-16 12:09:06 +0000
commit0045970352e8729b2797591beb88a7df884d84f4 (patch)
treeb9cd4c5aaaa26ce4a3c944ec5cfdbd7ad44b796d /db
parent613868af23d7c0e09210857518895edd6678f5e9 (diff)
downloadgitlab-ce-0045970352e8729b2797591beb88a7df884d84f4.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20230428165514_add_type_to_http_integrations.rb7
-rw-r--r--db/schema_migrations/202304281655141
-rw-r--r--db/structure.sql1
3 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20230428165514_add_type_to_http_integrations.rb b/db/migrate/20230428165514_add_type_to_http_integrations.rb
new file mode 100644
index 00000000000..b799b35fbbd
--- /dev/null
+++ b/db/migrate/20230428165514_add_type_to_http_integrations.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddTypeToHttpIntegrations < Gitlab::Database::Migration[2.1]
+ def change
+ add_column :alert_management_http_integrations, :type_identifier, :integer, default: 0, null: false, limit: 2
+ end
+end
diff --git a/db/schema_migrations/20230428165514 b/db/schema_migrations/20230428165514
new file mode 100644
index 00000000000..2cad40833c1
--- /dev/null
+++ b/db/schema_migrations/20230428165514
@@ -0,0 +1 @@
+ad16293967c9751d138690328308944dd0930cd88e1afa16d825fbaf2cc8299c \ No newline at end of file
diff --git a/db/structure.sql b/db/structure.sql
index 9e64191eb74..e8fdacd0ee9 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -11042,6 +11042,7 @@ CREATE TABLE alert_management_http_integrations (
name text NOT NULL,
payload_example jsonb DEFAULT '{}'::jsonb NOT NULL,
payload_attribute_mapping jsonb DEFAULT '{}'::jsonb NOT NULL,
+ type_identifier smallint DEFAULT 0 NOT NULL,
CONSTRAINT check_286943b636 CHECK ((char_length(encrypted_token_iv) <= 255)),
CONSTRAINT check_392143ccf4 CHECK ((char_length(name) <= 255)),
CONSTRAINT check_e270820180 CHECK ((char_length(endpoint_identifier) <= 255)),