diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 09:08:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 09:08:23 +0300 |
commit | be81c1578d65f25edfde8aa550f190b8d3e6d976 (patch) | |
tree | 0695fcaec3739d0ba486985bae2ebd85a3f49ee5 /db | |
parent | bb19d18713d1b3da7d564826f5e21e8d9f9f36cd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200224020219_add_status_page_settings.rb | 18 | ||||
-rw-r--r-- | db/schema.rb | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/db/migrate/20200224020219_add_status_page_settings.rb b/db/migrate/20200224020219_add_status_page_settings.rb new file mode 100644 index 00000000000..b960b60881e --- /dev/null +++ b/db/migrate/20200224020219_add_status_page_settings.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +class AddStatusPageSettings < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def change + create_table :status_page_settings, id: false do |t| + t.references :project, index: true, primary_key: true, foreign_key: { on_delete: :cascade }, unique: true, null: false + t.timestamps_with_timezone null: false + t.boolean :enabled, default: false, null: false + t.string :aws_s3_bucket_name, limit: 63, null: false + t.string :aws_region, limit: 255, null: false + t.string :aws_access_key, limit: 255, null: false + t.string :encrypted_aws_secret_key, limit: 255, null: false + t.string :encrypted_aws_secret_key_iv, limit: 255, null: false + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 188062b8897..cb632d983f9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -4002,6 +4002,18 @@ ActiveRecord::Schema.define(version: 2020_02_27_165129) do t.boolean "recaptcha_verified", default: false, null: false end + create_table "status_page_settings", primary_key: "project_id", force: :cascade do |t| + t.datetime_with_timezone "created_at", null: false + t.datetime_with_timezone "updated_at", null: false + t.boolean "enabled", default: false, null: false + t.string "aws_s3_bucket_name", limit: 63, null: false + t.string "aws_region", limit: 255, null: false + t.string "aws_access_key", limit: 255, null: false + t.string "encrypted_aws_secret_key", limit: 255, null: false + t.string "encrypted_aws_secret_key_iv", limit: 255, null: false + t.index ["project_id"], name: "index_status_page_settings_on_project_id" + end + create_table "subscriptions", id: :serial, force: :cascade do |t| t.integer "user_id" t.integer "subscribable_id" @@ -5018,6 +5030,7 @@ ActiveRecord::Schema.define(version: 2020_02_27_165129) do add_foreign_key "snippets", "projects", name: "fk_be41fd4bb7", on_delete: :cascade add_foreign_key "software_license_policies", "projects", on_delete: :cascade add_foreign_key "software_license_policies", "software_licenses", on_delete: :cascade + add_foreign_key "status_page_settings", "projects", on_delete: :cascade add_foreign_key "subscriptions", "projects", on_delete: :cascade add_foreign_key "suggestions", "notes", on_delete: :cascade add_foreign_key "system_note_metadata", "description_versions", name: "fk_fbd87415c9", on_delete: :nullify |