diff options
author | Arun Kumar Mohan <arunmohandm@gmail.com> | 2019-06-20 05:36:08 -0500 |
---|---|---|
committer | Arun Kumar Mohan <arunmohandm@gmail.com> | 2019-06-20 05:36:08 -0500 |
commit | 0cb6b787a0508ed891f5e69dad5c914e064db491 (patch) | |
tree | 9ae4e25ca3da02017d152b46040627b40affc7d4 /db | |
parent | a10d80eaddf81eb4996df586cc1e871f1e8b0779 (diff) | |
parent | 4298a28a993363f4ab6b63c14820492393a3ae94 (diff) | |
download | gitlab-ce-0cb6b787a0508ed891f5e69dad5c914e064db491.tar.gz |
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into db/update-geo-nodes-primary
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190607205656_add_wiki_columns_to_index_status.rb | 12 | ||||
-rw-r--r-- | db/post_migrate/20190619175843_remove_import_columns_from_projects.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 7 |
3 files changed, 29 insertions, 4 deletions
diff --git a/db/migrate/20190607205656_add_wiki_columns_to_index_status.rb b/db/migrate/20190607205656_add_wiki_columns_to_index_status.rb new file mode 100644 index 00000000000..0910d425212 --- /dev/null +++ b/db/migrate/20190607205656_add_wiki_columns_to_index_status.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class AddWikiColumnsToIndexStatus < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :index_statuses, :last_wiki_commit, :binary + add_column :index_statuses, :wiki_indexed_at, :datetime_with_timezone + end +end diff --git a/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb b/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb new file mode 100644 index 00000000000..85f776ac99c --- /dev/null +++ b/db/post_migrate/20190619175843_remove_import_columns_from_projects.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class RemoveImportColumnsFromProjects < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + remove_column :projects, :import_status, :string + remove_column :projects, :import_jid, :string + remove_column :projects, :import_error, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 5d48aa5087d..02d8ab10935 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20190618171120) do +ActiveRecord::Schema.define(version: 20190619175843) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1572,6 +1572,8 @@ ActiveRecord::Schema.define(version: 20190618171120) do t.string "last_commit" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.binary "last_wiki_commit" + t.datetime_with_timezone "wiki_indexed_at" t.index ["project_id"], name: "index_index_statuses_on_project_id", unique: true, using: :btree end @@ -2593,11 +2595,9 @@ ActiveRecord::Schema.define(version: 20190618171120) do t.integer "visibility_level", default: 0, null: false t.boolean "archived", default: false, null: false t.string "avatar" - t.string "import_status" t.integer "star_count", default: 0, null: false t.string "import_type" t.string "import_source" - t.text "import_error" t.boolean "shared_runners_enabled", default: true, null: false t.string "runners_token" t.string "build_coverage_regex" @@ -2619,7 +2619,6 @@ ActiveRecord::Schema.define(version: 20190618171120) do t.boolean "only_allow_merge_if_all_discussions_are_resolved" t.boolean "printing_merge_request_link_enabled", default: true, null: false t.integer "auto_cancel_pending_pipelines", default: 1, null: false - t.string "import_jid" t.integer "cached_markdown_version" t.text "delete_error" t.datetime "last_repository_updated_at" |