22 lines
778 B
SQL
22 lines
778 B
SQL
-- Erotikbereich: Sichtbar ab 18, nutzbar erst nach Moderatorfreigabe
|
|
|
|
INSERT INTO type.user_param (description, datatype, settings_id, order_id, immutable, min_age, gender, unit)
|
|
SELECT 'adult_verification_status', 'string', s.id, 910, false, 18, NULL, NULL
|
|
FROM type.settings s
|
|
WHERE s.name = 'account'
|
|
AND NOT EXISTS (
|
|
SELECT 1
|
|
FROM type.user_param p
|
|
WHERE p.description = 'adult_verification_status'
|
|
);
|
|
|
|
INSERT INTO type.user_param (description, datatype, settings_id, order_id, immutable, min_age, gender, unit)
|
|
SELECT 'adult_verification_request', 'string', s.id, 911, false, 18, NULL, NULL
|
|
FROM type.settings s
|
|
WHERE s.name = 'account'
|
|
AND NOT EXISTS (
|
|
SELECT 1
|
|
FROM type.user_param p
|
|
WHERE p.description = 'adult_verification_request'
|
|
);
|