|
|
@ -100,8 +100,8 @@ BEGIN |
|
|
|
|
|
|
|
---------------------------------- Formulários --------------------------------------- |
|
|
|
--Begin FloodZones Form |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active) |
|
|
|
SELECT fo.id, 'FLOODZONES_FORM', 'Flood Zones Form', 'Flood Zones Form', current_timestamp, 1 |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active, source) |
|
|
|
SELECT fo.id, 'FLOODZONES_FORM', 'Flood Zones Form', 'Flood Zones Form', current_timestamp, 1, , "citizen" |
|
|
|
FROM formsorigins fo |
|
|
|
WHERE fo.name = 'WP6.MobileApp' |
|
|
|
RETURNING id INTO idfloodzonesform; |
|
|
@ -137,8 +137,8 @@ BEGIN |
|
|
|
--End FloodZones Form |
|
|
|
|
|
|
|
--Begin Rain Form |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active) |
|
|
|
SELECT fo.id, 'RAIN_FORM', 'Rain', 'Rain zones Form', current_timestamp, 1 |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active, source) |
|
|
|
SELECT fo.id, 'RAIN_FORM', 'Rain', 'Rain zones Form', current_timestamp, 1, "citizen" |
|
|
|
FROM formsorigins fo |
|
|
|
WHERE fo.name = 'WP6.MobileApp' |
|
|
|
RETURNING id INTO idrainform; |
|
|
@ -174,8 +174,8 @@ BEGIN |
|
|
|
--End Rain Form |
|
|
|
|
|
|
|
--Begin Pluviometer Form |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active) |
|
|
|
SELECT fo.id, 'PLUVIOMETERS_FORM', 'Pluviometers', 'Pluviometers Form', current_timestamp, 1 |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active, source) |
|
|
|
SELECT fo.id, 'PLUVIOMETERS_FORM', 'Pluviometers', 'Pluviometers Form', current_timestamp, 1, "citizen" |
|
|
|
FROM formsorigins fo |
|
|
|
WHERE fo.name = 'WP6.MobileApp' |
|
|
|
RETURNING id INTO idpluvform; |
|
|
@ -210,8 +210,8 @@ BEGIN |
|
|
|
VALUES (DEFAULT, idpluvform, idfieldsimages, 1); |
|
|
|
--End Pluviometer Form |
|
|
|
--Begin River Form |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active) |
|
|
|
SELECT fo.id, 'RIVERFLOOD_FORM', 'River Flood', 'River Flood Form', current_timestamp, 1 |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active, source) |
|
|
|
SELECT fo.id, 'RIVERFLOOD_FORM', 'River Flood', 'River Flood Form', current_timestamp, 1, "citizen" |
|
|
|
FROM formsorigins fo |
|
|
|
WHERE fo.name = 'WP6.MobileApp' |
|
|
|
RETURNING id INTO idriverform; |
|
|
@ -247,8 +247,8 @@ BEGIN |
|
|
|
--End River Form |
|
|
|
|
|
|
|
--Pluviometer Registration Form |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active) |
|
|
|
SELECT fo.id, 'PLUVIOMETERS_REGISTRATION', 'Pluviometer registration', 'Pluviometer registration', current_timestamp, 1 |
|
|
|
INSERT INTO forms(idformsorigins, code, name, description, dtcreation, active, source) |
|
|
|
SELECT fo.id, 'PLUVIOMETERS_REGISTRATION', 'Pluviometer registration', 'Pluviometer registration', current_timestamp, 1, "citizen" |
|
|
|
FROM formsorigins fo |
|
|
|
WHERE fo.name = 'WP6.MobileApp' |
|
|
|
RETURNING id INTO idpluvregsform; |
|
|
|