diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-11-27 22:12:02 +0800 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-11-30 17:46:46 +0800 |
commit | 842486f5c812a5a1c7eb585a14f7acbee92ad3a6 (patch) | |
tree | 5c64aca547dd08308c9bb755636c16cce60803c1 /db | |
parent | 098066050d148deb024fdec6c36bfe9320c674bd (diff) | |
download | gitlab-ce-new-resolvable-discussion.tar.gz |
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161128095517_add_in_reply_to_discussion_id_to_sent_notifications.rb | 29 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/db/migrate/20161128095517_add_in_reply_to_discussion_id_to_sent_notifications.rb b/db/migrate/20161128095517_add_in_reply_to_discussion_id_to_sent_notifications.rb new file mode 100644 index 00000000000..d56d83ca1d3 --- /dev/null +++ b/db/migrate/20161128095517_add_in_reply_to_discussion_id_to_sent_notifications.rb @@ -0,0 +1,29 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddInReplyToDiscussionIdToSentNotifications < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + # When a migration requires downtime you **must** uncomment the following + # constant and define a short and easy to understand explanation as to why the + # migration requires downtime. + # DOWNTIME_REASON = '' + + # When using the methods "add_concurrent_index" or "add_column_with_default" + # you must disable the use of transactions as these methods can not run in an + # existing transaction. When using "add_concurrent_index" make sure that this + # method is the _only_ method called in the migration, any other changes + # should go in a separate migration. This ensures that upon failure _only_ the + # index creation fails and can be retried or reverted easily. + # + # To disable transactions uncomment the following line and remove these + # comments: + # disable_ddl_transaction! + + def change + add_column :sent_notifications, :in_reply_to_discussion_id, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 0d510c8a269..dc27c7450e9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1001,6 +1001,7 @@ ActiveRecord::Schema.define(version: 20161128161412) do t.string "line_code" t.string "note_type" t.text "position" + t.string "in_reply_to_discussion_id" end add_index "sent_notifications", ["reply_key"], name: "index_sent_notifications_on_reply_key", unique: true, using: :btree |