This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/db
Krzysztof Kotlarek ad3ec5809f
FIX: Dismiss new with better migration (#12062)
Original PR was reverted because of broken migration https://github.com/discourse/discourse/pull/12058

I fixed it by adding this line
```
          AND topics.id IN(SELECT id FROM topics ORDER BY created_at DESC LIMIT :max_new_topics)
```

This time it is left joining a limited amount of topics. I tested it on few databases and it worked quite smooth
2021-02-15 08:50:33 +11:00
..
fixtures FEATURE: WCAG compliant color schemes (#10882) 2020-10-15 14:05:48 -04:00
migrate Revert "FEATURE: Ability to dismiss all new topics (#12018)" (#12058) 2021-02-12 08:50:25 +11:00
post_migrate FIX: Dismiss new with better migration (#12062) 2021-02-15 08:50:33 +11:00
api_test_seeds.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00