mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-13 12:01:45 +08:00
Currently, if a batch "copy" of an import step results in all rows being skipped, the `after_commit_of_skipped_rows` callback is never triggered. This happens because the callback is nested inside a block that only runs when at least one row is inserted. This change ensures the DB copy operation returns both inserted and skipped rows, allowing the caller to respond appropriately in either case. --------- Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org> |
||
|---|---|---|
| .. | ||
| bin | ||
| config | ||
| db | ||
| docs | ||
| lib | ||
| scripts/benchmarks | ||
| spec | ||
| .gitignore | ||
| .rubocop.yml | ||
| migrations.rb | ||
| README.md | ||
Migrations Tooling
Command line interface
./bin/cli help
Converters
Public converters are stored in lib/converters/.
If you need to run a private converter, put its code into a subdirectory of private/converters/
Development
Installing gems
bundle config set --local with migrations
bundle install
Updating gems
bundle update --group migrations
Running tests
You need to execute rspec in the root of the project.
bin/rspec --default-path migrations/spec