discourse/migrations
Gerhard Schlager 53d7a756d6
DEV: Add Migrations::SetStore to work with nested sets of data (#33593)
There are concrete implementations for a simple set, a key-value store,
and nested sets with 2 or 3 keys. The API stays the same for all
implementations and the performances is more or less the same as without
the wrapper (at least with YJIT enabled).
2025-07-24 12:11:41 +02:00
..
bin DEV: Add --reset option to import command (#33317) 2025-06-24 22:58:32 +02:00
config DEV: Add newly promoted core plugins to IntermediateDB config (#33798) 2025-07-24 12:10:37 +02:00
db DEV: Add newly promoted core plugins to IntermediateDB config (#33798) 2025-07-24 12:10:37 +02:00
docs
lib DEV: Add Migrations::SetStore to work with nested sets of data (#33593) 2025-07-24 12:11:41 +02:00
scripts/benchmarks REFACTOR: Code generator for migrations IntemerdiateDB 2025-04-07 17:22:36 +02:00
spec DEV: Add Migrations::SetStore to work with nested sets of data (#33593) 2025-07-24 12:11:41 +02:00
.gitignore DEV: Adds a new converter for migrating from Discourse 2025-04-07 17:22:36 +02:00
.rubocop.yml DEV: Refactor migrations-tooling 2025-04-07 17:22:36 +02:00
migrations.rb DEV: Refactor migrations-tooling 2025-04-07 17:22:36 +02:00
README.md DEV: Add converter framework for migrations-tooling (#28540) 2024-09-09 17:14:39 +02:00

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