Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #153 from dpn-admin/issue_152
Browse files Browse the repository at this point in the history
Looks good.
  • Loading branch information
mikejritter authored Feb 15, 2017
2 parents ec205aa + 86e05b9 commit 2559169
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 27 deletions.
2 changes: 1 addition & 1 deletion config/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module DPN::Server
class Application
VERSION = '2.0.1'.freeze
VERSION = '2.0.2'.freeze
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class FixCancelReasonAndCancelReasonDetailTypes < ActiveRecord::Migration
def up
change_column :replication_transfers, :cancel_reason, :string
change_column :replication_transfers, :cancel_reason_detail, :text, limit: nil
change_column :restore_transfers, :cancel_reason, :string
change_column :restore_transfers, :cancel_reason_detail, :text, limit: nil
end
def down
change_column :replication_transfers, :cancel_reason_detail, :string, limit: 255
change_column :replication_transfers, :cancel_reason, :text
change_column :restore_transfers, :cancel_reason_detail, :string, limit: 255
change_column :restore_transfers, :cancel_reason, :text
end
end
52 changes: 26 additions & 26 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20160927230136) do
ActiveRecord::Schema.define(version: 20170215191441) do

create_table "bag_man_requests", force: :cascade do |t|
t.string "source_location", null: false
Expand Down Expand Up @@ -152,22 +152,22 @@
end

create_table "replication_transfers", force: :cascade do |t|
t.integer "bag_id", null: false
t.integer "from_node_id", null: false
t.integer "to_node_id", null: false
t.integer "protocol_id", null: false
t.string "link", null: false
t.integer "fixity_alg_id", null: false
t.integer "bag_id", null: false
t.integer "from_node_id", null: false
t.integer "to_node_id", null: false
t.integer "protocol_id", null: false
t.string "link", null: false
t.integer "fixity_alg_id", null: false
t.text "fixity_nonce"
t.string "fixity_value"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "replication_id", null: false
t.boolean "store_requested", default: false, null: false
t.boolean "stored", default: false, null: false
t.boolean "cancelled", default: false, null: false
t.text "cancel_reason"
t.string "cancel_reason_detail", limit: 255
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "replication_id", null: false
t.boolean "store_requested", default: false, null: false
t.boolean "stored", default: false, null: false
t.boolean "cancelled", default: false, null: false
t.string "cancel_reason"
t.text "cancel_reason_detail"
end

add_index "replication_transfers", ["replication_id"], name: "index_replication_transfers_on_replication_id", unique: true
Expand All @@ -180,19 +180,19 @@
end

create_table "restore_transfers", force: :cascade do |t|
t.integer "bag_id", null: false
t.integer "from_node_id", null: false
t.integer "to_node_id", null: false
t.integer "protocol_id", null: false
t.integer "bag_id", null: false
t.integer "from_node_id", null: false
t.integer "to_node_id", null: false
t.integer "protocol_id", null: false
t.string "link"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "restore_id", null: false
t.boolean "accepted", default: false, null: false
t.boolean "finished", default: false, null: false
t.boolean "cancelled", default: false, null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "restore_id", null: false
t.boolean "accepted", default: false, null: false
t.boolean "finished", default: false, null: false
t.boolean "cancelled", default: false, null: false
t.string "cancel_reason"
t.string "cancel_reason_detail", limit: 255
t.text "cancel_reason_detail"
end

add_index "restore_transfers", ["restore_id"], name: "index_restore_transfers_on_restore_id", unique: true
Expand Down

0 comments on commit 2559169

Please sign in to comment.