structured_data_to_sql 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ccb8d7b174afed7679305fa1e49d6892bbe7000d3816e01694aad2390773bc3
4
- data.tar.gz: 522028f6c1f0935a9e58e52730c46c7682863fd3431b2ffd78bca9f74f6a6718
3
+ metadata.gz: ff2d9500aa62ada917f7f65d973d3c9e5495506cfcc6cf06011328482fb50288
4
+ data.tar.gz: f5440b2010078d1b011106ba82c4256d44098501f91131706c80ad45d259de5f
5
5
  SHA512:
6
- metadata.gz: 9c3c997b1c817e2536deb6bdd0a86c945101b95a6d46f37cd8dbd875b3f1010f6f7538fe631edbb999fc56c105a632634fd67dd8fcccb761c3777b8eccd8ea4f
7
- data.tar.gz: ca3f01ad1ac74c4720e4991f720f377c533076f1d6b54c0d4f2f0e2b3797e67e668e6fff26e249bae28a5c3b5df507b9c9b988fcda39ca8f49fe23644589f8bc
6
+ metadata.gz: b443a51fdabf4dc975562fae2ed7e6cde39b616597cb640134dec3d470cc17f9ec27a46289c746b5ce3375d83861e86f0769e84266ad274f4cc7c95f52076b13
7
+ data.tar.gz: ebe2b6d53b667d71d8d8260eaaf39990cb56ffe6911117a9f2513e2da49da343b10fd1e848a2571a44d65bed1edc06fecd872ce6d962d0d34a800cbdd1ade0bf
@@ -17,8 +17,8 @@ module StructuredDataToSql
17
17
  NAME = :khoros_api_export
18
18
  # Bumped in lockstep with PROFILE_VERSION in the Khoros converter's
19
19
  # KhorosApiExportContentStaging whenever a canonical table's shape or
20
- # semantics change. Version 2 adds normalized root-message read-only state.
21
- VERSION = 2
20
+ # semantics change. Version 3 adds source-message view counts.
21
+ VERSION = 3
22
22
  PREFIX = "discourse_khoros_api"
23
23
  METADATA_TABLE = "_structured_data_to_sql_profiles"
24
24
  # Explicit storage options on every canonical table so they never
@@ -37,6 +37,7 @@ module StructuredDataToSql
37
37
  data_body
38
38
  data_conversation_id
39
39
  data_depth
40
+ data_metrics_views
40
41
  data_post_time
41
42
  data_read_only
42
43
  data_subject
@@ -1927,6 +1928,7 @@ module StructuredDataToSql
1927
1928
  m.data_subject AS subject,
1928
1929
  m.data_body AS body,
1929
1930
  m.data_post_time AS post_time,
1931
+ m.data_metrics_views AS views,
1930
1932
  #{boolean_value("m.data_read_only")} AS read_only,
1931
1933
  COALESCE(#{optional("messages", "data_is_solution", "0", table_alias: "m")}, 0) AS is_solution,
1932
1934
  #{optional("messages", "data_solution_data_message_id", table_alias: "m")} AS solution_message_id,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StructuredDataToSql
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structured_data_to_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Discourse Team