0
我剛剛更新gitlab(源代碼)從7.6到7.7.2,但有些錯誤。gitlab遷移數據庫但db/schema.rb不變
我跟着這個鏈接:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/7.6-to-7.7.md
與步驟:
- 結帳版本:7-7穩定(之前,我跑結帳 - DB/schema.rb)
當結帳版本完成時,我看到db/schema.rb已有版本:
ActiveRecord::Schema.define(version: 20150116234544) do
和表:protected_branches具有如列:
create_table "protected_branches", force: true do |t|
t.integer "project_id", null: false
t.string "name", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "developers_can_push", default: false, null: false
end
add_index "protected_branches", ["project_id"], name: "index_protected_branches_on_project_id", using: :btree
- 運行命令遷移數據庫
束EXEC耙分貝:遷移RAILS_ENV =生產
當我運行上面的命令,我看到這個文件db/schema.rb不包含列表developers_can_push在這個表protected_branches。並且此文件的版本是:
ActiveRecord::Schema.define(version: 20150812080800) do
所以,當我再次開始gitlab,nginx的,我不推到gitlab服務器,因爲有些不對勁 - 此列developers_can_push不存在。
請幫我解決這個問題。
謝謝!
我已經嘗試分貝:遷移:狀態 - 一切都過去了,但在啓動時gitlab,沒有什麼工作。高達20141217125223應用 添加所有者高達20141223135007添加導入數據到項目表 了20141226080412加入開發者可以推到保護分支機構 了20150108073740創建應用程序設置 了20150116234544添加首頁網址的應用程序設置 – vmintam
,做你運行gitlab站,開始命令? –
是的。我確實重新啓動了gitlab。 – vmintam