0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/migrations/tooling/config/schema/intermediate_db/tables
Gerhard Schlager 4032dc2b05 MT: Rework the embed linkage tables around an embed owner
The post_* linkage tables from #41177 become embed_* tables keyed by
(owner_type, owner_id), because placeholders will also live in user
bios and group/category/badge descriptions later. On top of the rename:

- quotes carry source coordinates (topic id + post number) and links a
  typed target, so the importer can resolve both once the id maps exist
- new hashtag and emoji linkage tables; mention_type, hashtag_type and
  link_target become integer enums and the string MentionType is gone
- EmbedBuffer records for one owner kind, PlaceholderResolver resolves
  and renders per owner and reports unresolved embeds and orphaned
  placeholders
- the posts and custom_emojis tables stay ignored until their
  conversion steps land in a follow-up PR
- the lazy source-name lookups (users, groups, categories with their
  slug paths, synonym-folded tags) live in their own NameResolver, and
  the resolver spec is split by phase under placeholder_resolver/
2026-07-22 12:56:54 +02:00
..
badge_groupings.rb
badges.rb
categories.rb
category_custom_fields.rb
category_moderation_groups.rb MT: Keep the real created_at for category moderation groups 2026-07-06 10:58:15 +02:00
category_users.rb
embed_emojis.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_events.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_hashtags.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_links.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_mentions.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_polls.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_quotes.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
embed_uploads.rb MT: Rework the embed linkage tables around an embed owner 2026-07-22 12:56:54 +02:00
group_users.rb
groups.rb
log_entries.rb
muted_users.rb
permalink_normalizations.rb
site_settings.rb
tag_group_memberships.rb
tag_group_permissions.rb
tag_groups.rb
tag_synonyms.rb
tag_users.rb
tags.rb
topic_allowed_groups.rb
topic_allowed_users.rb
topic_tags.rb
topic_users.rb
topics.rb
uploads.rb
user_associated_accounts.rb
user_custom_fields.rb
user_emails.rb
user_field_options.rb
user_field_values.rb
user_fields.rb
user_options.rb
user_suspensions.rb
users.rb