discourse/plugins/poll
Eduardo Poleo b500ef77d7 Poll migration is not idempotent (#7964)
The migration script is not idempotent due to database constrains on the
poll related objects, namely:

polls: index_polls_on_post_id_and_name (post_id,name) UNIQUE
poll_options: index_poll_options_on_poll_id_and_digest  (poll_id,digest) UNIQUE
poll_votes:  index_poll_votes_on_poll_id_and_poll_option_id_and_user_id  (poll_id,poll_option_id,user_id) UNIQUE

This change skips a particular poll migration if it's already found on
the db.
2019-08-08 18:48:53 +02:00
..
app DEV: Automatically annotate plugin models alongside core models 2019-05-13 16:37:47 +01:00
assets UX: Improve layout of poll builder modal 2019-08-07 15:00:03 -04:00
config Update translations 2019-07-15 09:43:22 -04:00
db Poll migration is not idempotent (#7964) 2019-08-08 18:48:53 +02:00
jobs/regular DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
lib DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec DEV: Use proper heredoc name. 2019-06-04 16:31:18 +08:00
test/javascripts DEV: prevents staff computed property to be overridden (#7931) 2019-07-24 22:01:08 +02:00
plugin.rb FIX: ensure the post url is present 2019-05-30 00:05:53 +02:00