discourse/lib/tasks
Alan Guo Xiang Tan 24dff9ec7b
DEV: Migrate default database first in multisite:migrate (#39446)
Discourse's `db:seed` definition appends to the Rails defined task rather than replacing it. The Rails
defined `db:seed` action calls `db:abort_if_pending_migrations`
which checks the default database's `schema_migrations` table regardless
of the currently connected rails_multisite database. When a forked
worker in `multisite:migrate` migrates a rails_multisite database before
the default database has been migrated, the check aborts with a pending
migration error.

This commit adds `db:migrate` as a prerequisite of `multisite:migrate`
so the default database is always migrated first.
2026-04-23 09:44:44 +08:00
..
add_topic_to_quotes.rake
admin.rake FEATURE: open the discourse-id gates (#34949) 2025-09-24 16:59:07 +02:00
annotate.rake DEV: Upgrade Rails to version 8.0.2 2025-07-22 09:59:44 +02:00
annotate_rb.rake DEV: Upgrade Rails to version 8.0.2 2025-07-22 09:59:44 +02:00
api.rake
api_docs.rake FIX: only load the api-docs rake task definition when required gems are available (#35432) 2025-10-16 12:36:53 +08:00
assets.rake DEV: Remove (again) the old non-rollup plugin compiler (#39419) 2026-04-21 21:07:46 +02:00
autospec.rake
avatars.rake
backfill.thor
categories.rake
cdn.rake
compatibility.rake
db.rake DEV: Migrate default database first in multisite:migrate (#39446) 2026-04-23 09:44:44 +08:00
destroy.rake
dev.rake
docker.rake DEV: Ensure plugins are loaded correctly when building in docker.rake (#38722) 2026-03-19 13:47:51 +00:00
documentation.rake
emails.rake DEV: Refactor email checks to use error classes and more specific error messages 2025-11-04 23:42:14 -05:00
export.rake
groups.rake
hashtags.rake
i18n.rake
images.rake
import.rake DEV: Fix already initialized constant warnings (#35854) 2025-11-06 01:02:10 +01:00
incoming_emails.rake
javascript.rake FEATURE: Support group based category posting review modes (#38707) 2026-04-07 10:41:16 +08:00
list_email_templates_strings.rake
log.rake
maxminddb.rake DEV: remove unused maxmind_thread variable (#37436) 2026-02-02 18:50:04 +11:00
migrate_advanced_search_banner_to_welcome_banner.rake FIX: improves search banner migration scripts (#36192) 2025-11-24 17:37:53 +08:00
plugin.rake DEV: Silence expected error/debug output in core specs (#39247) 2026-04-14 11:04:10 +02:00
populate.rake
populate.thor DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
posts.rake FIX: PG::UniqueViolation for PostTimings in posts:reorder_posts rake task when PostTiming records have no corresponding Post (#35212) 2025-10-08 18:48:21 +02:00
profile.rake
qunit.rake DEV: Refactor all js testing into bin/qunit (#35785) 2025-11-15 07:29:18 +11:00
redis.rake
release.rake DEV: Keep commit author when merging security fixes (#39010) 2026-04-02 16:43:00 +01:00
release_note.rake DEV: Fix already initialized constant warnings (#35854) 2025-11-06 01:02:10 +01:00
reviewables.rake DEV: fix a large amount of typos (#37428) 2026-02-02 16:31:58 +11:00
revisions.rake
rspec.rake DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
s3.rake DEV: Introduce new rollup-based plugin build system (#35477) 2026-03-03 13:50:55 +00:00
scheduler.rake
search.rake
site.rake FIX: Return file paths from FileStore download methods (#37760) 2026-02-17 11:56:50 +01:00
site_settings.rake
smoke_test.rake
svg_icons.rake
svg_sprites.rake
tags.rake
themes.rake DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
topic_localizations.rake DEV: Add rake task to backfill localization excerpts which were empty (#36901) 2025-12-30 17:04:36 +08:00
topics.rake DEV: Hand-pick Rails/WhereNot autofixes (#35117) 2025-10-03 13:29:22 +02:00
turbo.rake
typepad.thor
uploads.rake DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
users.rake