0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-12 05:37:26 +08:00
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 DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
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 FEATURE: Hash API keys in the database (#8438) 2019-12-12 11:45:00 +00:00
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 DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
avatars.rake DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
backfill.thor DEV: Format .thor files (#23059) 2023-08-10 13:59:13 +02:00
categories.rake FIX: Update category tag stats with new or deleted (#21531) 2023-05-18 12:46:44 +03:00
cdn.rake DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
compatibility.rake DEV: Introduce rake task to validate discourse-compatibility file (#26158) 2024-03-13 13:57:41 +00:00
db.rake DEV: Migrate default database first in multisite:migrate (#39446) 2026-04-23 09:44:44 +08:00
destroy.rake DEV: Add rake task to bulk delete posts (#31642) 2025-03-05 09:31:23 +08:00
dev.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
docker.rake DEV: Ensure plugins are loaded correctly when building in docker.rake (#38722) 2026-03-19 13:47:51 +00:00
documentation.rake DEV: Remove unmaintained tidy-jsdoc dependency (#25110) 2024-01-03 10:30:54 +00:00
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 DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
groups.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
hashtags.rake DEV: Capture output in hashtags spec (#20773) 2023-03-23 11:47:14 +10:00
i18n.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
images.rake DEV: Upgrade to Rails 7 2022-04-28 11:51:03 +02:00
import.rake DEV: Fix already initialized constant warnings (#35854) 2025-11-06 01:02:10 +01:00
incoming_emails.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
javascript.rake FEATURE: Support group based category posting review modes (#38707) 2026-04-07 10:41:16 +08:00
list_email_templates_strings.rake FIX: Add new/missing email templates to the email templates editor (#28075) 2024-07-30 00:27:41 +03:00
log.rake FIX: whoops, linting 2020-09-03 12:10:11 +01:00
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 DEV: Add reviewables:populate rake task (#30540) 2025-01-03 10:05:04 +08:00
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 DEV: Fix benchmark script 2024-11-20 14:36:44 +01:00
qunit.rake DEV: Refactor all js testing into bin/qunit (#35785) 2025-11-15 07:29:18 +11:00
redis.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
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 DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
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 FEATURE: call hub API to update Discourse discover enrollment. (#25634) 2024-02-23 11:42:28 +05:30
search.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
site.rake FIX: Return file paths from FileStore download methods (#37760) 2026-02-17 11:56:50 +01:00
site_settings.rake DEV: Revert the addition of keywords for all site settings. (#30755) 2025-01-14 13:34:04 +11:00
smoke_test.rake DEV: Switch to pnpm for JS dependencies (#28671) 2024-09-03 10:51:07 +01:00
svg_icons.rake DEV: Switch to pnpm for JS dependencies (#28671) 2024-09-03 10:51:07 +01:00
svg_sprites.rake DEV: Store theme sprites in the DB (#20501) 2023-03-14 13:11:45 -05:00
tags.rake DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
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 DEV: Fix bin/turbo_rspec runtime recording (#20407) 2023-02-23 07:47:11 +10:00
typepad.thor DEV: Format .thor files (#23059) 2023-08-10 13:59:13 +02:00
uploads.rake DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
users.rake DEV: update rake task to disable 2FA for a user (#29052) 2024-10-16 09:11:29 +11:00