58 lines
2.5 KiB
SQL
58 lines
2.5 KiB
SQL
***** Insertar evento THDVI
|
|
|
|
insert into lqdvi_v2.`events` (id, name, description, init_date, assistants, state, typeId,
|
|
CreatedAt, UpdatedAt, city)
|
|
select UUID() as ID, 'Edición Madrid 2015', 'Maravillosa 1ª edición del voluntariado Tu historia de verdad importa, #THDVI. Gracias a los narradores, a los protagonistas, y a todas aquellas personas que lo han hecho posible', '2015-01-02 06:00:00', '50', 'publish', '4', '2019-07-26 11:28:58', '2019-07-26 11:28:58', 'Madrid'
|
|
from aux_table
|
|
|
|
**********Insertar multimedia asociado
|
|
insert into lqdvi_v2.`multimedia_files` (id, lqdvi_v2.`multimedia_files`.name, description, class, provider, lqdvi_v2.`multimedia_files`.code,
|
|
url, userId, CreatedAt, UpdatedAt)
|
|
|
|
SELECT UUID() as ID, 'THDVI - 1 Edición Madrid' , 'Making of 1ª edición, Os presentamos el resultado de la maravillosa 1ª edición del voluntariado Tu historia de verdad importa. Gracias a los narradores, a los protagonistas, y a todas aquellas personas que han hecho posible',
|
|
'video','vimeo', '320555321', 'https://player.vimeo.com/video/320555321', 'ecf7dda2-258c-458d-a41f-de07a9cfb6eb', now(), now()
|
|
FROM lqdvi_v2.aux_table
|
|
|
|
insert into lqdvi_v2.multimedias (id, multimediafileId, entityId, entityName, type, createdAt, updatedat)
|
|
|
|
select UUID() as ID, 'd7cc286d-c50a-11e9-86a6-000c295f0f58', '0998e0c5-c4ce-11e9-86a6-000c295f0f58', 'event', 'resume', now(), now()
|
|
FROM lqdvi_v2.aux_table
|
|
|
|
|
|
|
|
|
|
|
|
|
|
https://vimeo.com/328614321
|
|
|
|
|
|
|
|
**********Insertar multimedia asociado
|
|
insert into lqdvi_v2.`multimedia_files` (id, lqdvi_v2.`multimedia_files`.name, description, class, provider, lqdvi_v2.`multimedia_files`.code,
|
|
url, userId, CreatedAt, UpdatedAt)
|
|
|
|
SELECT UUID() as ID, 'THDVI - 1 Edición Bilbao' , 'Making of 1ª edición',
|
|
'video','vimeo', '328614321', 'https://player.vimeo.com/video/328614321', 'ecf7dda2-258c-458d-a41f-de07a9cfb6eb', now(), now()
|
|
|
|
SELECT UUID() as ID, 'THDVI - 2 Edición Madrid' , 'Making of 2ª edición',
|
|
'video','vimeo', '320555737', 'https://player.vimeo.com/video/320555737', 'ecf7dda2-258c-458d-a41f-de07a9cfb6eb', now(), now()
|
|
|
|
FROM lqdvi_v2.aux_table
|
|
|
|
insert into lqdvi_v2.multimedias (id, multimediafileId, entityId, entityName, type, createdAt, updatedat)
|
|
|
|
select UUID() as ID, 'd7cc286d-c50a-11e9-86a6-000c295f0f58', '0998e0c5-c4ce-11e9-86a6-000c295f0f58', 'event', 'resume', now(), now()
|
|
FROM lqdvi_v2.aux_table
|
|
|
|
|
|
|
|
|
|
|
|
insert into locations (id, country, city, description, createdat, updatedat)
|
|
select UUID() as ID, 'España', 'Madrid', 'En la ciudad de Madrid empezamos nuestra andadura', now(), now()
|
|
from aux_table
|
|
|
|
|
|
|
|
|