Natalie Tay 1805184cde
FIX: Multiple topics may have the same post as its solution (#348)
We are seeing some errors when migrating and adding indexes on `answer_post_id`.

```
#<StandardError:"An error has occurred, all later migrations canceled:\n\nPG::UniqueViolation: ERROR:  could not create unique index \"index_discourse_solved_solved_topics_on_answer_post_id\"\nDETAIL:  Key (answer_post_id)=(13006) is duplicated.\n">
```

This PR modifies the earlier migration, and also adds one before the addition of indexes to remove duplicates.
2025-03-26 22:21:32 +08:00
2020-09-04 13:22:22 +02:00
2024-10-14 13:55:10 +02:00
2024-01-16 17:50:43 +01:00
2025-03-17 12:00:55 +00:00
2025-02-24 11:24:22 +08:00
2025-03-17 12:00:55 +00:00
2025-03-17 12:00:55 +00:00
2018-01-27 09:16:32 +08:00

Discourse Solved

Provides a solved button on designated categories

How to Install this Plugin

To install Discourse Plugin - https://meta.discourse.org/t/install-a-plugin/19157

How to Check if Plugin is installed

Go to Admin > Plugins

You should now see:

screen shot 2018-01-27 at 9 09 47 am

What to expect if Plugin is installed

Inside the Plugins, you will have the following options:

screen shot 2018-01-27 at 8 57 35 am

How to enable it in your posts

New Categories - Check Allow topic owner and staff to mark a reply as the solution

test2

Old Categories - Go to that Category > Edit > Settings > Check Allow topic owner and staff to mark a reply as the solution

BONUS: How to add badges to those who answered correctly

https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155

License

MIT

Description
Allow accepted answers on topics
Readme MIT 2 MiB
Languages
Ruby 73.8%
JavaScript 22.8%
Handlebars 1.8%
SCSS 1.6%