spina-admin-conferences 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4855ced148381eb461a10f277ee0f89e809317a5a2c0709ec6ab47811e356bb9
|
4
|
+
data.tar.gz: 37fe33f1025e9419990d4c6a7fdac696f7d5769a53a6d20249e1bb86d1897a33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
18
|
-
locations.
|
19
|
-
descriptions.
|
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
|
-
|
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
|
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
|
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',
|
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
|
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
|
-
|
6
|
-
|
7
|
-
change_column_default :spina_conferences_parts, :
|
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
|
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.
|
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-
|
11
|
+
date: 2020-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: babel-transpiler
|