discourse/migrations
Alan Guo Xiang Tan e890f6bae4
DEV: Add upcoming_change_events to excluded tables in migrations (#37319)
What is the problem?

The `migrations/bin/cli schema generate --db=intermediate_db` command
fails with the error "Tables not configured or excluded:
upcoming_change_events". The `upcoming_change_events` table was added
in commit 8124ecab97 but was not added to the migrations schema
configuration.

What is the solution?

Add `upcoming_change_events` to the `global.tables.exclude` list in
`migrations/config/intermediate_db.yml`. This table is an internal
system table for tracking admin feature notifications and is not
relevant for data migrations between Discourse instances.
2026-01-27 14:13:55 +08:00
..
bin DEV: Set Regex timeout for migrations (#35190) 2025-10-06 16:29:34 +02:00
config DEV: Add upcoming_change_events to excluded tables in migrations (#37319) 2026-01-27 14:13:55 +08:00
db DEV: update IntermediateDB schema config (#37198) 2026-01-20 21:45:29 +01:00
docs
lib FIX: CategoryModerationGroups import step query (#36392) 2025-12-03 21:26:18 +01:00
scripts/benchmarks REFACTOR: Code generator for migrations IntemerdiateDB 2025-04-07 17:22:36 +02:00
spec DEV: Add ability to share data between importer steps 2025-11-19 10:36:47 +01: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: Restructure importer files 2025-11-03 11:23:53 +01: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