@@ -7,14 +7,267 @@ output:
7
7
8
8
schema :
9
9
tables :
10
+ badges :
11
+ columns :
12
+ add :
13
+ - name : " existing_id"
14
+ datatype : " text"
15
+ exclude :
16
+ - " grant_count"
17
+ categories :
18
+ columns :
19
+ add :
20
+ - name : " about_topic_title"
21
+ datatype : text
22
+ - name : " existing_id"
23
+ datatype : text
24
+ exclude :
25
+ - " contains_messages"
26
+ - " latest_post_id"
27
+ - " latest_topic_id"
28
+ - " name_lower"
29
+ - " post_count"
30
+ - " posts_day"
31
+ - " posts_month"
32
+ - " posts_week"
33
+ - " posts_year"
34
+ - " topic_count"
35
+ - " topics_day"
36
+ - " topics_month"
37
+ - " topics_week"
38
+ - " topics_year"
39
+ category_custom_fields :
40
+ primary_key_column_names : [ "category_id", "name" ]
41
+ columns :
42
+ exclude :
43
+ - " created_at"
44
+ - " id"
45
+ category_users :
46
+ columns :
47
+ exclude :
48
+ - " id"
49
+ chat_channels :
50
+ columns :
51
+ add :
52
+ - name : " is_group"
53
+ datatype : boolean
54
+ exclude :
55
+ - " last_message_id"
56
+ - " user_count_stale"
57
+ chat_mentions : {}
58
+ chat_message_reactions :
59
+ primary_key_column_names : [ "chat_message_id", "user_id", "emoji" ]
60
+ columns :
61
+ exclude :
62
+ - " id"
63
+ chat_messages :
64
+ columns :
65
+ add :
66
+ - name : " original_message"
67
+ datatype : text
68
+ exclude :
69
+ - " cooked_version"
70
+ - " cooked"
71
+ chat_threads :
72
+ primary_key_column_names : [original_id, channel_id, original_message_id, original_message_user_id ]
73
+ group_users :
74
+ primary_key_column_names : [ "group_id", "user_id" ]
75
+ groups :
76
+ columns :
77
+ include :
78
+ - " allow_membership_requests"
79
+ - " allow_unknown_sender_topic_replies"
80
+ - " automatic"
81
+ - " automatic_membership_email_domains"
82
+ - " bio_raw"
83
+ - " created_at"
84
+ - " default_notification_level"
85
+ - " flair_bg_color"
86
+ - " flair_color"
87
+ - " flair_icon"
88
+ - " flair_upload_id"
89
+ - " full_name"
90
+ - " grant_trust_level"
91
+ - " id"
92
+ - " members_visibility_level"
93
+ - " membership_request_template"
94
+ - " mentionable_level"
95
+ - " messageable_level"
96
+ - " name"
97
+ - " primary_group"
98
+ - " public_admission"
99
+ - " public_exit"
100
+ - " title"
101
+ - " visibility_level"
102
+ muted_users :
103
+ columns :
104
+ exclude :
105
+ - " id"
106
+ primary_key_column_names : [ "user_id", "muted_user_id" ]
107
+ permalinks :
108
+ primary_key_column_names : [ "url" ]
109
+ columns :
110
+ add :
111
+ - name : " external_url_placeholders"
112
+ datatype : json
113
+ exclude :
114
+ - " created_at"
115
+ - " id"
116
+ poll_options :
117
+ columns :
118
+ exclude :
119
+ - " digest"
120
+ - " html"
121
+ poll_votes :
122
+ primary_key_column_names : [ "poll_option_id", "user_id" ]
123
+ polls : {}
124
+ post_custom_fields :
125
+ primary_key_column_names : [ "post_id", "name" ]
126
+ columns :
127
+ exclude :
128
+ - " created_at"
129
+ - " id"
130
+ posts :
131
+ columns :
132
+ add :
133
+ - name : " original_raw"
134
+ datatype : text
135
+ - name : " reply_to_post_id"
136
+ datatype : numeric
137
+ exclude :
138
+ - " action_code"
139
+ - " baked_at"
140
+ - " baked_version"
141
+ - " bookmark_count"
142
+ - " cook_method"
143
+ - " cooked"
144
+ - " edit_reason"
145
+ - " illegal_count"
146
+ - " incoming_link_count"
147
+ - " inappropriate_count"
148
+ - " like_score"
149
+ - " notify_moderators_count"
150
+ - " notify_user_count"
151
+ - " off_topic_count"
152
+ - " outbound_message_id"
153
+ - " percent_rank"
154
+ - " public_version"
155
+ - " raw_email"
156
+ - " reply_quoted"
157
+ - " reply_to_post_number"
158
+ - " score"
159
+ - " self_edits"
160
+ - " sort_order"
161
+ - " version"
162
+ - " via_email"
163
+ - " word_count"
164
+ indexes :
165
+ - name : " posts_by_topic_post_number"
166
+ columns :
167
+ - " topic_id"
168
+ - " post_number"
169
+ tag_groups : {}
170
+ tag_users :
171
+ primary_key_column_names : [ "tag_id", "user_id" ]
172
+ tags :
173
+ columns :
174
+ add :
175
+ - name : " tag_group_id"
176
+ datatype : numeric
177
+ exclude :
178
+ - " pm_topic_count"
179
+ - " public_topic_count"
180
+ - " staff_topic_count"
181
+ topic_tags :
182
+ primary_key_column_names : [ "topic_id", "tag_id" ]
183
+ topic_users :
184
+ primary_key_column_names : ["user_id", "topic_id" ]
185
+ columns :
186
+ exclude :
187
+ - " id"
188
+ topics :
189
+ columns :
190
+ exclude :
191
+ - " external_id"
192
+ - " fancy_title"
193
+ - " highest_post_number"
194
+ - " highest_staff_post_number"
195
+ - " last_post_user_id"
196
+ - " last_posted_at"
197
+ - " like_count"
198
+ - " moderator_posts_count"
199
+ - " notify_moderators_count"
200
+ - " participant_count"
201
+ - " percent_rank"
202
+ - " posts_count"
203
+ - " reply_count"
204
+ - " reviewable_score"
205
+ - " score"
206
+ - " slow_mode_seconds"
207
+ - " spam_count"
208
+ - " visibility_reason_id"
209
+ - " word_count"
210
+ user_associated_accounts :
211
+ primary_key_column_names : [ "user_id", "provider_name" ]
212
+ columns :
213
+ exclude :
214
+ - " id"
215
+ - " created_at"
216
+ user_badges :
217
+ columns :
218
+ exclude :
219
+ - " id"
220
+ - " notification_id"
221
+ - " seq"
222
+ user_chat_channel_memberships :
223
+ primary_key_column_names : [ "user_id", "chat_channel_id" ]
224
+ columns :
225
+ exclude :
226
+ - " id"
227
+ user_chat_thread_memberships :
228
+ primary_key_column_names : [ "user_id", "thread_id" ]
229
+ columns :
230
+ exclude :
231
+ - " id"
232
+ user_custom_fields :
233
+ columns :
234
+ add :
235
+ - name : " field_id"
236
+ datatype : numeric
237
+ nullable : false
238
+ - name : " is_multiselect_field"
239
+ datatype : boolean
240
+ nullable : false
241
+ exclude :
242
+ - " id"
243
+ - " created_at"
244
+ indexes :
245
+ - name : " user_field_values_multiselect"
246
+ columns :
247
+ - " user_id"
248
+ - " field_id"
249
+ - " value"
250
+ unique : true
251
+ condition : " WHERE is_multiselect_field = TRUE"
252
+ - name : " user_field_values_not_multiselect"
253
+ columns :
254
+ - " user_id"
255
+ - " field_id"
256
+ unique : true
257
+ condition : " WHERE is_multiselect_field = FALSE"
10
258
user_emails :
11
259
columns :
12
260
include :
261
+ - " created_at"
13
262
- " email"
14
263
- " primary"
15
264
- " user_id"
16
- - " created_at"
17
265
primary_key_column_names : [ "email" ]
266
+ user_fields :
267
+ columns :
268
+ add :
269
+ - name : " options"
270
+ datatype : json
18
271
user_options :
19
272
primary_key_column_names : [ "user_id" ]
20
273
users :
@@ -35,6 +288,7 @@ schema:
35
288
- " suspended_till"
36
289
- " username_lower"
37
290
291
+
38
292
global :
39
293
columns :
40
294
modify :
@@ -63,11 +317,8 @@ schema:
63
317
- " backup_metadata"
64
318
- " badge_groupings"
65
319
- " badge_types"
66
- - " badges"
67
320
- " bookmarks"
68
- - " categories"
69
321
- " categories_web_hooks"
70
- - " category_custom_fields"
71
322
- " category_featured_topics"
72
323
- " category_form_templates"
73
324
- " category_groups"
@@ -79,20 +330,14 @@ schema:
79
330
- " category_tag_groups"
80
331
- " category_tag_stats"
81
332
- " category_tags"
82
- - " category_users"
83
333
- " chat_channel_archives"
84
334
- " chat_channel_custom_fields"
85
- - " chat_channels"
86
335
- " chat_drafts"
87
336
- " chat_mention_notifications"
88
- - " chat_mentions"
89
337
- " chat_message_custom_fields"
90
338
- " chat_message_interactions"
91
- - " chat_message_reactions"
92
339
- " chat_message_revisions"
93
- - " chat_messages"
94
340
- " chat_thread_custom_fields"
95
- - " chat_threads"
96
341
- " chat_webhook_events"
97
342
- " child_themes"
98
343
- " color_scheme_colors"
@@ -130,8 +375,6 @@ schema:
130
375
- " group_mentions"
131
376
- " group_requests"
132
377
- " group_tag_notification_defaults"
133
- - " group_users"
134
- - " groups"
135
378
- " groups_web_hooks"
136
379
- " ignored_users"
137
380
- " imap_sync_logs"
@@ -147,19 +390,13 @@ schema:
147
390
- " linked_topics"
148
391
- " message_bus"
149
392
- " moved_posts"
150
- - " muted_users"
151
393
- " notifications"
152
394
- " oauth2_user_infos"
153
395
- " onceoff_logs"
154
396
- " optimized_images"
155
- - " permalinks"
156
397
- " plugin_store_rows"
157
- - " poll_options"
158
- - " poll_votes"
159
- - " polls"
160
398
- " post_action_types"
161
399
- " post_actions"
162
- - " post_custom_fields"
163
400
- " post_details"
164
401
- " post_hotlinked_media"
165
402
- " post_localizations"
@@ -169,7 +406,6 @@ schema:
169
406
- " post_search_data"
170
407
- " post_stats"
171
408
- " post_timings"
172
- - " posts"
173
409
- " problem_check_trackers"
174
410
- " published_pages"
175
411
- " push_subscriptions"
@@ -200,10 +436,7 @@ schema:
200
436
- " summary_sections"
201
437
- " tag_group_memberships"
202
438
- " tag_group_permissions"
203
- - " tag_groups"
204
439
- " tag_search_data"
205
- - " tag_users"
206
- - " tags"
207
440
- " tags_web_hooks"
208
441
- " theme_color_schemes"
209
442
- " theme_fields"
@@ -225,13 +458,10 @@ schema:
225
458
- " topic_links"
226
459
- " topic_localizations"
227
460
- " topic_search_data"
228
- - " topic_tags"
229
461
- " topic_thumbnails"
230
462
- " topic_timers"
231
- - " topic_users"
232
463
- " topic_view_stats"
233
464
- " topic_views"
234
- - " topics"
235
465
- " translation_overrides"
236
466
- " unsubscribe_keys"
237
467
- " upload_references"
@@ -242,18 +472,12 @@ schema:
242
472
- " user_api_key_scopes"
243
473
- " user_api_keys"
244
474
- " user_archived_messages"
245
- - " user_associated_accounts"
246
475
- " user_associated_groups"
247
476
- " user_auth_token_logs"
248
477
- " user_auth_tokens"
249
478
- " user_avatars"
250
- - " user_badges"
251
- - " user_chat_channel_memberships"
252
- - " user_chat_thread_memberships"
253
- - " user_custom_fields"
254
479
- " user_exports"
255
480
- " user_field_options"
256
- - " user_fields"
257
481
- " user_histories"
258
482
- " user_ip_address_histories"
259
483
- " user_notification_schedules"
0 commit comments