apidae 1.3.0 → 1.3.5
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 +5 -5
- data/app/assets/config/manifest.js +1 -0
- data/app/helpers/apidae/extendable_helper.rb +4 -0
- data/app/models/apidae/apidae_data_parser.rb +24 -10
- data/app/models/apidae/file_import.rb +12 -5
- data/app/models/apidae/obj.rb +18 -11
- data/app/models/apidae/selection.rb +6 -3
- data/app/models/apidae/territory.rb +18 -0
- data/config/initializers/constants.rb +7 -3
- data/config/locales/apidae.fr.yml +1 -0
- data/db/migrate/20201112080847_create_apidae_territories.rb +10 -0
- data/db/migrate/20210607214647_add_apidae_type_to_apidae_territories.rb +5 -0
- data/lib/apidae/version.rb +1 -1
- data/test/data/shared_selections.json +15 -0
- data/test/dummy/log/development.log +283 -0
- data/test/dummy/log/test.log +5185 -0
- data/test/models/apidae/file_import_test.rb +23 -0
- metadata +10 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 33abbdbe85b4e375a90d5e003724039d802e8c9e817865ab3607a44fca342897
|
4
|
+
data.tar.gz: d2596dfedc91f0306eeef4360c98066cbcebbc2da3587f1c4041a63843ab1948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d14fa60b837515f4b0596d49c38d1aa2f5e5136b4a6d5c918bfdad16a56b35c3cfe2c2edf79e2a54876abadd717190aa6b6dfa90dbc2fd14044739c99c5f79c
|
7
|
+
data.tar.gz: 4cd4ccbfc4132dc763b19b3518117b905b254c34824b501e35a805c75d58ac976a544f7515e9285ed80c0768b1acfca6cd53d9b2242dd971127e45fed5ad02c4
|
@@ -0,0 +1 @@
|
|
1
|
+
//= link_tree ../images
|
@@ -44,7 +44,7 @@ module Apidae
|
|
44
44
|
'LUNDI' => MONDAY,
|
45
45
|
'MARDI' => TUESDAY,
|
46
46
|
'MERCREDI' => WEDNESDAY,
|
47
|
-
'
|
47
|
+
'JEUDI' => THURSDAY,
|
48
48
|
'VENDREDI' => FRIDAY,
|
49
49
|
'SAMEDI' => SATURDAY,
|
50
50
|
'DIMANCHE' => SUNDAY
|
@@ -151,6 +151,7 @@ module Apidae
|
|
151
151
|
name: localized_value(att, :nom, locale),
|
152
152
|
url: att[:traductionFichiers][0][:url].gsub('http:', 'https:'),
|
153
153
|
type: att[:type],
|
154
|
+
link: att[:link],
|
154
155
|
description: localized_value(att, :legende, locale)
|
155
156
|
}
|
156
157
|
end
|
@@ -222,6 +223,8 @@ module Apidae
|
|
222
223
|
loc_data[:latitude] = geoloc_details[:geoJson][:coordinates][1]
|
223
224
|
loc_data[:longitude] = geoloc_details[:geoJson][:coordinates][0]
|
224
225
|
end
|
226
|
+
loc_data[:map_reference] = geoloc_details[:reperePlan]
|
227
|
+
loc_data[:altitude] = geoloc_details[:altitude] if geoloc_details
|
225
228
|
loc_data[:access] = node_value(geoloc_details, :complement) if geoloc_details
|
226
229
|
loc_data[:environments] = location_hash[:environnements].map {|e| e[:id]} if location_hash[:environnements]
|
227
230
|
end
|
@@ -236,6 +239,7 @@ module Apidae
|
|
236
239
|
openings_desc: node_value(openings_hash, :periodeEnClair, *locales),
|
237
240
|
openings_desc_mode: openings_hash[:periodeEnClairGenerationMode] == 'AUTOMATIQUE' ? MODE_AUTO : MODE_MANUAL,
|
238
241
|
openings: build_openings(openings_hash, *locales),
|
242
|
+
all_year_long: openings_hash[:ouvertTouteLAnnee] == 'OUVERT_TOUTE_L_ANNEE' ? 'true' : 'false',
|
239
243
|
time_periods: lists_ids(openings_hash[:indicationsPeriode]),
|
240
244
|
openings_extra: lists_ids(openings_hash[:ouverturesComplementaires])
|
241
245
|
}
|
@@ -264,7 +268,7 @@ module Apidae
|
|
264
268
|
apidae_obj.apidae_subtype = node_id(data_hash, :rubrique) if apidae_obj.apidae_type == Obj::EQU
|
265
269
|
apidae_obj.apidae_subtype = lists_ids(data_hash[:typesHebergement]).first if apidae_obj.apidae_type == Obj::SPA
|
266
270
|
{
|
267
|
-
categories: lists_ids(data_hash[:categories], data_hash[:typesDetailles], data_hash[:activiteCategories]),
|
271
|
+
categories: lists_ids(data_hash[:categories], data_hash[:typesDetailles], data_hash[:activiteCategories], data_hash[:typesHabitation]),
|
268
272
|
themes: lists_ids(data_hash[:themes]),
|
269
273
|
capacity: (data_hash[:capacite] || {})
|
270
274
|
.merge(presta_hash ? {group_min: presta_hash[:tailleGroupeMin], group_max: presta_hash[:tailleGroupeMax],
|
@@ -275,7 +279,8 @@ module Apidae
|
|
275
279
|
(node_id(data_hash, :typeLabel) ? [node_id(data_hash, :typeLabel)] : []),
|
276
280
|
chains: lists_ids(data_hash[:chaines]) + nodes_ids(data_hash[:chaineEtLabel]),
|
277
281
|
area: apidae_obj.apidae_type == Obj::DOS ? data_hash.except(:classification) : node_value(data_hash, :lieuDePratique),
|
278
|
-
track: apidae_obj.apidae_type == Obj::EQU ? data_hash[:itineraire] : nil,
|
282
|
+
track: apidae_obj.apidae_type == Obj::EQU ? (data_hash[:itineraire] || {}).except(:passagesDelicats) : nil,
|
283
|
+
tricky_sections: apidae_obj.apidae_type == Obj::EQU ? node_value(data_hash[:itineraire], :passagesDelicats, *locales) : nil,
|
279
284
|
products: lists_ids(data_hash[:typesProduit], data_hash[:aopAocIgps], data_hash[:specialites]),
|
280
285
|
audience: lists_ids(prestations_hash[:typesClientele]),
|
281
286
|
animals: {allowed: prestations_hash[:animauxAcceptes] == 'ACCEPTES', desc: node_value(prestations_hash, :descriptifAnimauxAcceptes, *locales),
|
@@ -317,13 +322,17 @@ module Apidae
|
|
317
322
|
tags
|
318
323
|
end
|
319
324
|
|
320
|
-
def self.parse_booking(reservation_hash, *locales)
|
325
|
+
def self.parse_booking(reservation_hash, visits_hash, *locales)
|
326
|
+
booking_hash = {}
|
321
327
|
if reservation_hash
|
322
|
-
|
323
|
-
|
324
|
-
booking_entities: reservation_hash[:organismes]
|
325
|
-
}
|
328
|
+
booking_hash[:booking_desc] = node_value(reservation_hash, :complement, *locales),
|
329
|
+
booking_hash[:booking_entities] = reservation_hash[:organismes]
|
326
330
|
end
|
331
|
+
if visits_hash
|
332
|
+
booking_hash[:visits_allowed] = visits_hash[:visitable] == true
|
333
|
+
booking_hash[:visits_desc] = node_value(visits_hash, :complementVisite, *locales)
|
334
|
+
end
|
335
|
+
booking_hash
|
327
336
|
end
|
328
337
|
|
329
338
|
def self.parse_town(location_hash)
|
@@ -335,10 +344,15 @@ module Apidae
|
|
335
344
|
end
|
336
345
|
end
|
337
346
|
|
338
|
-
def self.parse_entity_fields(information_hash, type_data_hash)
|
347
|
+
def self.parse_entity_fields(information_hash, type_data_hash, sp_hash)
|
348
|
+
entity_hash = {}
|
339
349
|
if information_hash && information_hash[:structureGestion]
|
340
|
-
{entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)}
|
350
|
+
entity_hash.merge!({entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)})
|
351
|
+
end
|
352
|
+
if sp_hash && sp_hash[:prestataireActivites]
|
353
|
+
entity_hash[:is_service_provider] = true
|
341
354
|
end
|
355
|
+
entity_hash
|
342
356
|
end
|
343
357
|
|
344
358
|
def self.node_id(node, key)
|
@@ -30,16 +30,19 @@ module Apidae
|
|
30
30
|
Town.import(zfile.read(TOWNS_FILE))
|
31
31
|
logger.info "Completed #{Town.count} towns update"
|
32
32
|
end
|
33
|
-
zfile.each do |file|
|
33
|
+
ordered_files(zfile).each do |file|
|
34
|
+
puts "processing #{file.name}"
|
34
35
|
if file.file? && file.name.end_with?('.json')
|
35
36
|
logger.info "Processing file : #{file.name}"
|
36
37
|
if file.name.include?(MODIFIED_DIR)
|
37
38
|
add_or_update_objects(zfile.read(file.name), result, project.locales, project.versions)
|
38
|
-
|
39
|
-
|
40
|
-
elsif file.name.include?(SELECTIONS_FILE)
|
39
|
+
end
|
40
|
+
if file.name.include?(SELECTIONS_FILE)
|
41
41
|
add_or_update_selections(project, zfile.read(file.name), result)
|
42
42
|
end
|
43
|
+
if file.name.include?(DELETED_FILE)
|
44
|
+
delete_objects(zfile.read(file.name), result)
|
45
|
+
end
|
43
46
|
end
|
44
47
|
end
|
45
48
|
create(result.except(:selections)
|
@@ -104,12 +107,16 @@ module Apidae
|
|
104
107
|
end
|
105
108
|
end
|
106
109
|
|
110
|
+
def self.ordered_files(zfile)
|
111
|
+
zfile.sort_by {|f| f.name.include?(MODIFIED_DIR) ? 0 : (f.name.include?(SELECTIONS_FILE) ? 1 : 2)}
|
112
|
+
end
|
113
|
+
|
107
114
|
def self.delete_objects(deleted_json, result)
|
108
115
|
deleted_ids = JSON.parse(deleted_json)
|
109
116
|
deleted_ids.each do |id|
|
110
117
|
obj = Obj.find_by_apidae_id(id)
|
111
118
|
if obj
|
112
|
-
obj.destroy!
|
119
|
+
obj.destroy! if obj.selections.empty?
|
113
120
|
result[:deleted] += 1
|
114
121
|
else
|
115
122
|
logger.info "skipping object deletion : #{id}"
|
data/app/models/apidae/obj.rb
CHANGED
@@ -7,6 +7,7 @@ module Apidae
|
|
7
7
|
|
8
8
|
attr_accessor :locale
|
9
9
|
attr_accessor :obj_version
|
10
|
+
attr_accessor :obj_versions
|
10
11
|
|
11
12
|
store_accessor :title_data, :title
|
12
13
|
store_accessor :owner_data, :owner_name, :owner_id
|
@@ -14,15 +15,15 @@ module Apidae
|
|
14
15
|
store_accessor :pictures_data, :pictures
|
15
16
|
store_accessor :attachments_data, :attachments
|
16
17
|
store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
|
17
|
-
:products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
|
18
|
-
store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id
|
18
|
+
:tricky_sections, :products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
|
19
|
+
store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id, :is_service_provider
|
19
20
|
store_accessor :contact_data, :telephone, :email, :website, :google, :facebook, :twitter, :yelp, :trip_advisor, :fax,
|
20
21
|
:mobile_website, :shorty_url, :contacts
|
21
|
-
store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments
|
22
|
+
store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments, :altitude, :map_reference
|
22
23
|
store_accessor :openings_data, :openings_desc, :openings_desc_mode, :openings, :time_periods, :openings_extra
|
23
24
|
store_accessor :rates_data, :rates_desc, :rates_desc_mode, :rates, :payment_methods, :includes, :excludes, :rates_extra
|
24
25
|
store_accessor :service_data, :services, :equipments, :comfort, :activities, :challenged, :languages
|
25
|
-
store_accessor :booking_data, :booking_desc, :booking_entities
|
26
|
+
store_accessor :booking_data, :booking_desc, :booking_entities, :visits_allowed, :visits_desc
|
26
27
|
store_accessor :tags_data, :promo, :internal, :linked
|
27
28
|
store_accessor :version_data, :versioned_fields
|
28
29
|
|
@@ -83,7 +84,7 @@ module Apidae
|
|
83
84
|
COS => {node: :informationsCommerceEtService, subtype: :commerceEtServiceType},
|
84
85
|
DEG => {node: :informationsDegustation, subtype: :degustationType},
|
85
86
|
DOS => {node: :informationsDomaineSkiable, subtype: :domaineSkiableType},
|
86
|
-
EQU => {node: :informationsEquipement, subtype: :
|
87
|
+
EQU => {node: :informationsEquipement, subtype: :rubrique},
|
87
88
|
FEM => {node: :informationsFeteEtManifestation, subtype: :feteEtManifestationType},
|
88
89
|
HCO => {node: :informationsHebergementCollectif, subtype: :hebergementCollectifType},
|
89
90
|
HLO => {node: :informationsHebergementLocatif, subtype: :hebergementLocatifType},
|
@@ -100,6 +101,7 @@ module Apidae
|
|
100
101
|
after_initialize do
|
101
102
|
@locale = DEFAULT_LOCALE
|
102
103
|
@obj_version = DEFAULT_VERSION
|
104
|
+
@obj_versions = {}
|
103
105
|
end
|
104
106
|
|
105
107
|
def root_obj
|
@@ -111,11 +113,15 @@ module Apidae
|
|
111
113
|
end
|
112
114
|
|
113
115
|
def in_version(v)
|
114
|
-
|
115
|
-
|
116
|
-
|
116
|
+
if v == DEFAULT_VERSION && root_obj_id.nil?
|
117
|
+
@obj_version = DEFAULT_VERSION
|
118
|
+
self
|
119
|
+
else
|
120
|
+
if @obj_versions[v].nil?
|
121
|
+
@obj_versions[v] = versions.where(version: v).first
|
122
|
+
end
|
123
|
+
@obj_versions[v]
|
117
124
|
end
|
118
|
-
@cached_versions[v]
|
119
125
|
end
|
120
126
|
|
121
127
|
def in_locale(l)
|
@@ -164,6 +170,7 @@ module Apidae
|
|
164
170
|
apidae_obj
|
165
171
|
end
|
166
172
|
|
173
|
+
# Note : overrides existing fields (not a merge)
|
167
174
|
def self.populate_fields(apidae_obj, object_data, locales)
|
168
175
|
type_fields = TYPES_DATA[object_data[:type]]
|
169
176
|
apidae_obj.last_update = DateTime.parse(object_data[:gestion][:dateModification]) unless object_data[:gestion].blank?
|
@@ -178,12 +185,12 @@ module Apidae
|
|
178
185
|
apidae_obj.town = ApidaeDataParser.parse_town(object_data[:localisation])
|
179
186
|
apidae_obj.openings_data = ApidaeDataParser.parse_openings(object_data[:ouverture], *locales)
|
180
187
|
apidae_obj.rates_data = ApidaeDataParser.parse_rates(object_data[:descriptionTarif], *locales)
|
181
|
-
apidae_obj.booking_data = ApidaeDataParser.parse_booking(object_data[:reservation], *locales)
|
188
|
+
apidae_obj.booking_data = ApidaeDataParser.parse_booking(object_data[:reservation], object_data[:visites], *locales)
|
182
189
|
apidae_obj.type_data = ApidaeDataParser.parse_type_data(apidae_obj, object_data[type_fields[:node]], object_data[:prestations],
|
183
190
|
object_data[:tourismeAffaires], *locales)
|
184
191
|
apidae_obj.pictures_data = ApidaeDataParser.parse_pictures_data(object_data[:illustrations], *locales)
|
185
192
|
apidae_obj.attachments_data = ApidaeDataParser.parse_attachments_data(object_data[:multimedias], *locales)
|
186
|
-
apidae_obj.entity_data = ApidaeDataParser.parse_entity_fields(object_data[:informations], object_data[type_fields[:node]])
|
193
|
+
apidae_obj.entity_data = ApidaeDataParser.parse_entity_fields(object_data[:informations], object_data[type_fields[:node]], object_data[:informationsPrestataireActivites])
|
187
194
|
apidae_obj.service_data = ApidaeDataParser.parse_service_data(object_data[:prestations], object_data[type_fields[:node]])
|
188
195
|
apidae_obj.tags_data = ApidaeDataParser.parse_tags_data(object_data[:presentation], object_data[:criteresInternes], object_data[:liens])
|
189
196
|
apidae_obj.meta_data = object_data[:metadonnees]
|
@@ -69,7 +69,7 @@ module Apidae
|
|
69
69
|
key = cache_key(:agenda, from, to)
|
70
70
|
res = $apidae_cache.read(key)
|
71
71
|
unless res
|
72
|
-
query_args = build_args(AGENDA_ENDPOINT, {selection_ids: [apidae_id], from: from, to: to})
|
72
|
+
query_args = build_args(AGENDA_ENDPOINT, {selection_ids: [apidae_id], from: from, to: to, count: 200})
|
73
73
|
res = query_api(query_args, true)
|
74
74
|
$apidae_cache.write(key, res)
|
75
75
|
end
|
@@ -92,6 +92,7 @@ module Apidae
|
|
92
92
|
query_api(query_args, true, false)
|
93
93
|
end
|
94
94
|
|
95
|
+
# Note : WARNING - updated obj will only contain the provided fields
|
95
96
|
def add_or_refresh_obj(apidae_obj_id, fields = ["@all"])
|
96
97
|
if valid_api?
|
97
98
|
res = api_object(apidae_obj_id, fields)
|
@@ -102,6 +103,7 @@ module Apidae
|
|
102
103
|
end
|
103
104
|
end
|
104
105
|
|
106
|
+
# Note : WARNING - updated objs will only contain the provided fields
|
105
107
|
def add_or_refresh_objs(fields = ["@all"])
|
106
108
|
if valid_api?
|
107
109
|
res = api_objects({fields: fields})
|
@@ -140,14 +142,15 @@ module Apidae
|
|
140
142
|
|
141
143
|
if all_results
|
142
144
|
loops = 0
|
145
|
+
max_loops = only_ids ? 50 : MAX_LOOPS
|
143
146
|
query_args[:first] = 0
|
144
|
-
query_args[:count]
|
147
|
+
query_args[:count] ||= MAX_COUNT
|
145
148
|
query_args[:locales] ||= apidae_project && !apidae_project.locales.blank? ? apidae_project.locales : [DEFAULT_LOCALE]
|
146
149
|
response = JSON.parse get_response(query_args), symbolize_names: false
|
147
150
|
total = response['numFound']
|
148
151
|
query_result[:results] = (only_ids ? response['objetTouristiqueIds'] : response['objetsTouristiques']) || {}
|
149
152
|
|
150
|
-
while total > results_count(query_result) && loops <
|
153
|
+
while total > results_count(query_result) && loops < max_loops
|
151
154
|
loops += 1
|
152
155
|
query_args[:first] += MAX_COUNT
|
153
156
|
response = JSON.parse get_response(query_args), symbolize_names: false
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Apidae
|
2
|
+
class Territory < ApplicationRecord
|
3
|
+
def self.import(territories_json)
|
4
|
+
territories_hashes = JSON.parse(territories_json, symbolize_names: true)
|
5
|
+
territories_hashes.each do |t_data|
|
6
|
+
t = Territory.find_or_initialize_by(apidae_id: t_data[:id])
|
7
|
+
t.name = t_data.dig(:nom, :libelleFr)
|
8
|
+
t.apidae_type = t_data.dig(:territoireType, :id)
|
9
|
+
t.save!
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.import_file(json_file)
|
14
|
+
territories_json = File.read(json_file)
|
15
|
+
import(territories_json)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -8,9 +8,10 @@ module Apidae
|
|
8
8
|
LOCALE_ZH = 'zh'
|
9
9
|
LOCALE_ES = 'es'
|
10
10
|
LOCALE_PT_BR = 'pt-BR'
|
11
|
+
LOCALE_JP = 'jp'
|
11
12
|
|
12
13
|
DEFAULT_LOCALE = LOCALE_FR
|
13
|
-
ALL_LOCALES = [LOCALE_FR, LOCALE_EN, LOCALE_IT, LOCALE_DE, LOCALE_NL, LOCALE_RU, LOCALE_ZH, LOCALE_ES, LOCALE_PT_BR]
|
14
|
+
ALL_LOCALES = [LOCALE_FR, LOCALE_EN, LOCALE_IT, LOCALE_DE, LOCALE_NL, LOCALE_RU, LOCALE_ZH, LOCALE_ES, LOCALE_PT_BR, LOCALE_JP]
|
14
15
|
|
15
16
|
STANDARD_VERSION = 'STANDARD'
|
16
17
|
WINTER_VERSION = 'HIVER'
|
@@ -26,6 +27,9 @@ module Apidae
|
|
26
27
|
|
27
28
|
LOCALIZED_FIELDS = [:title, :short_desc, :long_desc, :pictures, :attachments, :openings_desc, :rates_desc,
|
28
29
|
:includes, :excludes, :extra, :booking_desc]
|
29
|
-
ALL_FIELDS = LOCALIZED_FIELDS + [:theme_desc, :private_desc, :capacity, :telephone, :email, :website,
|
30
|
-
:
|
30
|
+
ALL_FIELDS = LOCALIZED_FIELDS + [:theme_desc, :private_desc, :capacity, :telephone, :email, :website,
|
31
|
+
:google, :facebook, :twitter, :yelp, :trip_advisor, :fax, :mobile_website, :shorty_url,
|
32
|
+
:openings, :openings_extra, :rates, :services, :payment_methods, :categories, :themes,
|
33
|
+
:labels, :chains, :classification, :challenged, :environments, :languages, :products,
|
34
|
+
:animals, :equipments, :comfort, :activities, :promo, :internal, :linked]
|
31
35
|
end
|
data/lib/apidae/version.rb
CHANGED
@@ -65,3 +65,286 @@ Migrating to AddLocalesDataToApidaeProjects (20190123214635)
|
|
65
65
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
66
66
|
[1m[36mApidae::Obj Load (26.8ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|
67
67
|
[1m[36mApidae::Obj Load (2.4ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|
68
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
69
|
+
[1m[35m (3.4ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
70
|
+
[1m[35m (20.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
71
|
+
[1m[35m (40.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
72
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
73
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
74
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
75
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
76
|
+
[1m[35m (40.3ms)[0m [1m[35mCREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
77
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170512212941"]]
|
78
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
79
|
+
Migrating to CreateApidaeObjects (20170512214641)
|
80
|
+
[1m[35m (40.8ms)[0m [1m[35mBEGIN[0m
|
81
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "apidae_objects" ("id" serial NOT NULL PRIMARY KEY, "address" character varying, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "title" character varying, "short_desc" text, "contact" text, "long_desc" text, "type_data" text, "latitude" float, "longitude" float, "openings" text, "rates" text, "reservation" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
82
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170512214641"]]
|
83
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
84
|
+
Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
|
85
|
+
[1m[35m (39.6ms)[0m [1m[35mBEGIN[0m
|
86
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "apidae_objects_apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)[0m
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170512221525"]]
|
88
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
89
|
+
Migrating to CreateApidaeTowns (20170513114002)
|
90
|
+
[1m[35m (40.7ms)[0m [1m[35mBEGIN[0m
|
91
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "apidae_towns" ("id" serial NOT NULL PRIMARY KEY, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
92
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")[0m
|
93
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170513114002"]]
|
94
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
95
|
+
Migrating to AddTownInseeCodeToObjects (20170513114409)
|
96
|
+
[1m[35m (40.5ms)[0m [1m[35mBEGIN[0m
|
97
|
+
[1m[35m (4.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "town_insee_code" character varying[0m
|
98
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170513114409"]]
|
99
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
100
|
+
Migrating to AddPicturesDataToObjects (20170513115401)
|
101
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
102
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "pictures_data" text[0m
|
103
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170513115401"]]
|
104
|
+
[1m[35m (27.1ms)[0m [1m[35mCOMMIT[0m
|
105
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
106
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
107
|
+
[1m[35m (24.8ms)[0m [1m[35mCREATE TABLE "apidae_attached_files" ("id" serial NOT NULL PRIMARY KEY, "name" character varying, "credits" character varying, "description" text, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
108
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170513121215"]]
|
109
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
110
|
+
Migrating to RenameObjectsSelectionsTable (20170513205932)
|
111
|
+
[1m[35m (33.6ms)[0m [1m[35mBEGIN[0m
|
112
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objects_apidae_selections" RENAME TO "apidae_objects_selections"[0m
|
113
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER INDEX "apidae_objects_apidae_selections_pkey" RENAME TO "apidae_objects_selections_pkey"[0m
|
114
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "public"."apidae_objects_apidae_selections_id_seq" RENAME TO "apidae_objects_selections_id_seq"[0m
|
115
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170513205932"]]
|
116
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
117
|
+
Migrating to AddEntityDataToObjects (20170720161134)
|
118
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
119
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "entity_data" text[0m
|
120
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170720161134"]]
|
121
|
+
[1m[35m (40.7ms)[0m [1m[35mCOMMIT[0m
|
122
|
+
Migrating to CreateApidaeFileImports (20170730102424)
|
123
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
124
|
+
[1m[35m (47.6ms)[0m [1m[35mCREATE TABLE "apidae_file_imports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
125
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170730102424"]]
|
126
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
127
|
+
Migrating to CreateApidaeExports (20171025075304)
|
128
|
+
[1m[35m (40.4ms)[0m [1m[35mBEGIN[0m
|
129
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
130
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171025075304"]]
|
131
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
132
|
+
Migrating to CreateApidaeSelectionObjects (20180217222410)
|
133
|
+
[1m[35m (40.4ms)[0m [1m[35mBEGIN[0m
|
134
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
135
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180217222410"]]
|
136
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
137
|
+
Migrating to ChangeTextColumnsToJson (20180218172704)
|
138
|
+
[1m[35m (32.6ms)[0m [1m[35mBEGIN[0m
|
139
|
+
[1m[35m (6.8ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "pictures_data" TYPE jsonb USING pictures_data::text::jsonb[0m
|
140
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "type_data" TYPE jsonb USING type_data::text::jsonb[0m
|
141
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "entity_data" TYPE jsonb USING entity_data::text::jsonb[0m
|
142
|
+
[1m[35m (3.0ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "contact" TYPE jsonb USING contact::text::jsonb[0m
|
143
|
+
[1m[35m (2.6ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "address" TYPE jsonb USING address::text::jsonb[0m
|
144
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "apidae_objects" ALTER COLUMN "openings" TYPE jsonb USING openings::text::jsonb[0m
|
145
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180218172704"]]
|
146
|
+
[1m[35m (3.7ms)[0m [1m[35mCOMMIT[0m
|
147
|
+
Migrating to AddServiceDataToApidaeObjects (20180218231319)
|
148
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
149
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "service_data" jsonb[0m
|
150
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180218231319"]]
|
151
|
+
[1m[35m (40.8ms)[0m [1m[35mCOMMIT[0m
|
152
|
+
Migrating to AddRatesDataToApidaeObjects (20180222104915)
|
153
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
154
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "rates_data" jsonb[0m
|
155
|
+
[1m[35m (41.4ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "rates"[0m
|
156
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222104915"]]
|
157
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
158
|
+
Migrating to RenameOpeningsToOpeningsData (20180222105302)
|
159
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
160
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" RENAME COLUMN "openings" TO "openings_data"[0m
|
161
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222105302"]]
|
162
|
+
[1m[35m (40.6ms)[0m [1m[35mCOMMIT[0m
|
163
|
+
Migrating to AddAttachmentsDataToApidaeObjects (20180307164936)
|
164
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
165
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "attachments_data" jsonb[0m
|
166
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180307164936"]]
|
167
|
+
[1m[35m (37.6ms)[0m [1m[35mCOMMIT[0m
|
168
|
+
Migrating to CreateApidaeReferences (20180307170349)
|
169
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
170
|
+
[1m[35m (85.3ms)[0m [1m[35mCREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
171
|
+
[1m[35m (41.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")[0m
|
172
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180307170349"]]
|
173
|
+
[1m[35m (41.1ms)[0m [1m[35mCOMMIT[0m
|
174
|
+
Migrating to AddTagsDataToApidaeObjects (20180314093512)
|
175
|
+
[1m[35m (81.8ms)[0m [1m[35mBEGIN[0m
|
176
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "tags_data" jsonb[0m
|
177
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180314093512"]]
|
178
|
+
[1m[35m (40.8ms)[0m [1m[35mCOMMIT[0m
|
179
|
+
Migrating to AddMetaDataToApidaeObjects (20180314132631)
|
180
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
181
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "meta_data" jsonb[0m
|
182
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180314132631"]]
|
183
|
+
[1m[35m (41.0ms)[0m [1m[35mCOMMIT[0m
|
184
|
+
Migrating to RemoveApidaeIdUnicity (20180319143954)
|
185
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
186
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP INDEX "index_apidae_references_on_apidae_id"[0m
|
187
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")[0m
|
188
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180319143954"]]
|
189
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
190
|
+
Migrating to AddLocationDataToApidaeObjects (20180417164604)
|
191
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
192
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "location_data" jsonb[0m
|
193
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180417164604"]]
|
194
|
+
[1m[35m (23.5ms)[0m [1m[35mCOMMIT[0m
|
195
|
+
Migrating to RemoveAddressFromApidaeObjects (20180417165744)
|
196
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
197
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "address"[0m
|
198
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180417165744"]]
|
199
|
+
[1m[35m (23.3ms)[0m [1m[35mCOMMIT[0m
|
200
|
+
Migrating to RemoveLatLngFromApidaeObjects (20180417171344)
|
201
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
202
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "latitude"[0m
|
203
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "longitude"[0m
|
204
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180417171344"]]
|
205
|
+
[1m[35m (20.9ms)[0m [1m[35mCOMMIT[0m
|
206
|
+
Migrating to AddDescriptionDataToApidaeObjects (20180418141248)
|
207
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
208
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objects" ADD "description_data" jsonb[0m
|
209
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180418141248"]]
|
210
|
+
[1m[35m (22.7ms)[0m [1m[35mCOMMIT[0m
|
211
|
+
Migrating to RemoveDescColumnsFromApidaeObjects (20180418141305)
|
212
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
213
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "short_desc"[0m
|
214
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "apidae_objects" DROP COLUMN "long_desc"[0m
|
215
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180418141305"]]
|
216
|
+
[1m[35m (41.3ms)[0m [1m[35mCOMMIT[0m
|
217
|
+
Migrating to AddMetaDataToApidaeReferences (20180424141656)
|
218
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
219
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_references" ADD "meta_data" jsonb[0m
|
220
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180424141656"]]
|
221
|
+
[1m[35m (40.2ms)[0m [1m[35mCOMMIT[0m
|
222
|
+
Migrating to RemoveInseeCodeUnicity (20180519170210)
|
223
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
224
|
+
[1m[35m (0.3ms)[0m [1m[35mDROP INDEX "index_apidae_towns_on_insee_code"[0m
|
225
|
+
[1m[35m (41.9ms)[0m [1m[35mCREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")[0m
|
226
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180519170210"]]
|
227
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
228
|
+
Migrating to DestroyAttachedFiles (20180521211735)
|
229
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
230
|
+
[1m[35m (37.9ms)[0m [1m[35mDROP TABLE "apidae_attached_files"[0m
|
231
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180521211735"]]
|
232
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
233
|
+
Migrating to RenameObjectsToObj (20180625050400)
|
234
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
235
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objects" RENAME TO "apidae_objs"[0m
|
236
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER INDEX "apidae_objects_pkey" RENAME TO "apidae_objs_pkey"[0m
|
237
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "public"."apidae_objects_id_seq" RENAME TO "apidae_objs_id_seq"[0m
|
238
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180625050400"]]
|
239
|
+
[1m[35m (40.7ms)[0m [1m[35mCOMMIT[0m
|
240
|
+
Migrating to AddProjectIdToSelections (20181024072424)
|
241
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
242
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_selections" ADD "apidae_project_id" integer[0m
|
243
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181024072424"]]
|
244
|
+
[1m[35m (34.0ms)[0m [1m[35mCOMMIT[0m
|
245
|
+
Migrating to CreateApidaeProjects (20181024072843)
|
246
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
247
|
+
[1m[35m (43.8ms)[0m [1m[35mCREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
248
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181024072843"]]
|
249
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
250
|
+
Migrating to AddApidaeIdToApidaeFileImports (20190111162443)
|
251
|
+
[1m[35m (40.4ms)[0m [1m[35mBEGIN[0m
|
252
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_file_imports" ADD "apidae_id" integer[0m
|
253
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190111162443"]]
|
254
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
255
|
+
Migrating to UpgradeApidaeObjsTitleDataType (20190123142628)
|
256
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
257
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "title_data" jsonb[0m
|
258
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs"[0m
|
259
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objs" DROP COLUMN "title"[0m
|
260
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123142628"]]
|
261
|
+
[1m[35m (40.4ms)[0m [1m[35mCOMMIT[0m
|
262
|
+
Migrating to AddBookingDataToApidaeObjs (20190123160046)
|
263
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
264
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "booking_data" jsonb[0m
|
265
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs"[0m
|
266
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER TABLE "apidae_objs" DROP COLUMN "reservation"[0m
|
267
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123160046"]]
|
268
|
+
[1m[35m (40.1ms)[0m [1m[35mCOMMIT[0m
|
269
|
+
Migrating to AddLocalesDataToApidaeProjects (20190123214635)
|
270
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
271
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_projects" ADD "locales_data" character varying[0m
|
272
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123214635"]]
|
273
|
+
[1m[35m (22.4ms)[0m [1m[35mCOMMIT[0m
|
274
|
+
Migrating to AddVersionToApidaeObjs (20190124162543)
|
275
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
276
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "version" character varying[0m
|
277
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "root_obj_id" integer[0m
|
278
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER TABLE "apidae_projects" ADD "versions_data" character varying[0m
|
279
|
+
[1m[36mApidae::Obj Update All (0.5ms)[0m [1m[33mUPDATE "apidae_objs" SET "version" = 'STANDARD' WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
280
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190124162543"]]
|
281
|
+
[1m[35m (40.7ms)[0m [1m[35mCOMMIT[0m
|
282
|
+
Migrating to MigrateLocalizedApidaeObjFields (20190127210921)
|
283
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
284
|
+
[1m[36mApidae::Obj Load (0.6ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
285
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190127210921"]]
|
286
|
+
[1m[35m (39.7ms)[0m [1m[35mCOMMIT[0m
|
287
|
+
Migrating to MigrateLocalizedApidaeReferences (20190127213602)
|
288
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
289
|
+
[1m[36mApidae::Reference Load (0.6ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references"[0m
|
290
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190127213602"]]
|
291
|
+
[1m[35m (40.5ms)[0m [1m[35mCOMMIT[0m
|
292
|
+
Migrating to MigrateDescApidaeObjFields (20190304142446)
|
293
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
294
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs"."id", "root_obj_id", "apidae_objs"."description_data" FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
295
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190304142446"]]
|
296
|
+
[1m[35m (20.7ms)[0m [1m[35mCOMMIT[0m
|
297
|
+
Migrating to AddIndexOnApidaeObj (20190418133435)
|
298
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
299
|
+
[1m[35m (20.4ms)[0m [1m[35mCREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")[0m
|
300
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")[0m
|
301
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190418133435"]]
|
302
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
303
|
+
Migrating to AddDescriptionToApidaeTowns (20190517153215)
|
304
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
305
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "apidae_towns" ADD "description" character varying[0m
|
306
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190517153215"]]
|
307
|
+
[1m[35m (21.5ms)[0m [1m[35mCOMMIT[0m
|
308
|
+
Migrating to AddLastUpdateToApidaeOjbs (20200111214145)
|
309
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
310
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "last_update" timestamp[0m
|
311
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200111214145"]]
|
312
|
+
[1m[35m (21.4ms)[0m [1m[35mCOMMIT[0m
|
313
|
+
Migrating to AddOwnerDataToApidaeObjs (20200111214631)
|
314
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
315
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "owner_data" jsonb[0m
|
316
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200111214631"]]
|
317
|
+
[1m[35m (23.2ms)[0m [1m[35mCOMMIT[0m
|
318
|
+
Migrating to AddApidaeTypeIndexOnReferences (20200224130804)
|
319
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
320
|
+
[1m[35m (23.3ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")[0m
|
321
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200224130804"]]
|
322
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
323
|
+
Migrating to AddTownInseeCodeIndexToObjs (20200224145802)
|
324
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
325
|
+
[1m[35m (24.5ms)[0m [1m[35mCREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")[0m
|
326
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200224145802"]]
|
327
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
328
|
+
Migrating to AddVersionDataToApidaeObjs (20200312150008)
|
329
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
330
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "version_data" jsonb[0m
|
331
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200312150008"]]
|
332
|
+
[1m[35m (24.0ms)[0m [1m[35mCOMMIT[0m
|
333
|
+
Migrating to AddVersionIndexOnApidaeObjs (20200312150904)
|
334
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
335
|
+
[1m[35m (21.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")[0m
|
336
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200312150904"]]
|
337
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
338
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
339
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
340
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2021-07-08 09:47:54.615597"], ["updated_at", "2021-07-08 09:47:54.615597"]]
|
341
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
342
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
343
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
344
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
345
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
346
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
347
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
348
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
349
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
350
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|