spina-admin-conferences 1.3.6 → 1.3.7

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: 8c30ccae98052b11d0de343a6db12d48a3a584da68a0c2dc8226813a3559e783
4
- data.tar.gz: 6a4fe3a6af558192125fdb2a0162a32d58b4e51739208876afa33a3d33bbb2e2
3
+ metadata.gz: 4855ced148381eb461a10f277ee0f89e809317a5a2c0709ec6ab47811e356bb9
4
+ data.tar.gz: 37fe33f1025e9419990d4c6a7fdac696f7d5769a53a6d20249e1bb86d1897a33
5
5
  SHA512:
6
- metadata.gz: fddf46fd731f71914f279a8ec253f797aee685ef31c14b7f652bd934fd9736e86196adccd24ae08b6140ae41a870fa34d788acdaf93b480282bd0c18b2b008e3
7
- data.tar.gz: be324272b7adcf0cdc00968ead3f3dabfe3a9ce9a2ac5a8512389ebfd2d98af9575c7eee39d8e6f572dfcc9424c1e49041fa43dd714727b62d8f8c873b4bb9da
6
+ metadata.gz: f8c63252841083f687aab4546c87b4d350cab948262b3f0730b36f9bd69889f5784b257761da6a2752c8fab359bed582decf733ca1a76d86846b2b329659b3dc
7
+ data.tar.gz: 1e0ce2da9d466c0ca4727f74453bc03d71bed9eaf357c70a6f47de75ace8e563c35d6bca845ef6bd760797d6d464bb18a1712811a70b10d140460246104ae01f
@@ -14,9 +14,9 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
14
14
  descriptions.content AS description,
15
15
  names.locale AS locale,
16
16
  start_times.id AS start_time_id,
17
- names.id AS title_translation_id,
18
- locations.id AS location_translation_id,
19
- descriptions.id AS description_translation_id
17
+ names.translation_id AS title_translation_id,
18
+ locations.translation_id AS location_translation_id,
19
+ descriptions.translation_id AS description_translation_id
20
20
  FROM spina_conferences_parts
21
21
  INNER JOIN spina_structure_items ON partable_id = structure_id AND partable_type = 'Spina::Structure'
22
22
  LEFT JOIN (
@@ -29,7 +29,7 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
29
29
  ) AS start_times ON start_times.structure_item_id = spina_structure_items.id
30
30
  LEFT JOIN (
31
31
  SELECT
32
- spina_lines.id AS id, content, locale, structure_item_id
32
+ spina_line_translations.id AS translation_id, content, locale, structure_item_id
33
33
  FROM spina_structure_parts
34
34
  INNER JOIN spina_lines
35
35
  ON structure_partable_id = spina_lines.id
@@ -40,7 +40,7 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
40
40
  WHERE content IS NOT NULL
41
41
  ) AS names ON names.structure_item_id = spina_structure_items.id
42
42
  LEFT JOIN (
43
- SELECT spina_lines.id AS id, content, locale, structure_item_id
43
+ SELECT spina_line_translations.id AS translation_id, content, locale, structure_item_id
44
44
  FROM spina_structure_parts
45
45
  INNER JOIN spina_lines
46
46
  ON structure_partable_id = spina_lines.id
@@ -51,7 +51,7 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
51
51
  WHERE content IS NOT NULL
52
52
  ) AS locations ON locations.structure_item_id = spina_structure_items.id
53
53
  LEFT JOIN (
54
- SELECT spina_texts.id AS id, content, locale, structure_item_id
54
+ SELECT spina_text_translations.id AS translation_id, content, locale, structure_item_id
55
55
  FROM spina_structure_parts
56
56
  INNER JOIN spina_texts
57
57
  ON structure_partable_id = spina_texts.id
@@ -130,7 +130,8 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
130
130
  ), parts AS (
131
131
  INSERT INTO spina_conferences_parts (title, name, partable_type, partable_id, pageable_type, pageable_id)
132
132
  SELECT
133
- 'Events', 'events', 'Spina::Structure', structures_with_indices.id, 'Spina::Admin::Conferences::Conference', conferences.id
133
+ 'Events', 'events', 'Spina::Structure', structures_with_indices.id, 'Spina::Admin::Conferences::Conference',
134
+ conferences_with_indices.id
134
135
  FROM (SELECT id, row_number() OVER (ORDER BY id) AS index FROM structures) AS structures_with_indices
135
136
  INNER JOIN (SELECT id, row_number() OVER (ORDER BY id) AS index FROM conferences) AS conferences_with_indices USING (index)
136
137
  ), events AS (
@@ -207,7 +208,8 @@ class MoveConferenceParts < ActiveRecord::Migration[6.0] # rubocop:disable Metri
207
208
  structure_items_with_indices.id, partable_id, type, replace(lower(title), '\W', '_'), title, current_timestamp,
208
209
  current_timestamp
209
210
  FROM structure_parts_to_insert
210
- INNER JOIN (SELECT id, row_number() OVER (ORDER BY id) AS index FROM events) AS events_with_indices ON event_id = events.id
211
+ INNER JOIN (SELECT id, row_number() OVER (ORDER BY id) AS index FROM events) AS events_with_indices
212
+ ON event_id = events_with_indices.id
211
213
  INNER JOIN (SELECT id, row_number() OVER (ORDER BY id) AS index FROM structure_items) AS structure_items_with_indices
212
214
  USING (index)
213
215
  ), deleted_events AS (
@@ -2,8 +2,9 @@
2
2
 
3
3
  class AddTimestampsToSpinaConferencesParts < ActiveRecord::Migration[6.0]
4
4
  def change
5
- add_timestamps :spina_conferences_parts, default: Time.now
6
- change_column_default :spina_conferences_parts, :created_at, nil
7
- change_column_default :spina_conferences_parts, :updated_at, nil
5
+ default = Time.now
6
+ add_timestamps :spina_conferences_parts, default: default
7
+ change_column_default :spina_conferences_parts, :created_at, from: default, to: nil
8
+ change_column_default :spina_conferences_parts, :updated_at, from: default, to: nil
8
9
  end
9
10
  end
@@ -4,7 +4,7 @@ module Spina
4
4
  module Admin
5
5
  module Conferences
6
6
  # Version number.
7
- VERSION = '1.3.6'
7
+ VERSION = '1.3.7'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-admin-conferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Malčić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: babel-transpiler