provisioning-server/migrations/0014_google_earth_merkmal.sql
Thomas Stallinger 5237606f49 feat: Google Earth Pro als Katalog-Merkmal
Merkmal + Blueprints (fedora, mint -> ansible_role 'google-earth')
in der app-store-Kategorie, analog zu LibreOffice nicht Teil von
workspace_merkmale (kein Basisbedarf, Kunde wählt aktiv).

Lokal gegen eine Wegwerf-Postgres mit allen Migrationen 0001-0014
verifiziert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 09:21:23 +02:00

21 lines
1.1 KiB
PL/PgSQL

BEGIN;
-- Google Earth Pro als weitere App-Store-Option. Bewusst nicht Teil von
-- workspace_merkmale (wie schon LibreOffice, siehe Migration 0013) - kein
-- Basisbedarf für einen Schulcomputer, Kunde wählt aktiv im Katalog.
INSERT INTO merkmale (id, key, name, description, kategorie_id, im_auftragskatalog) VALUES
('348e50c5-de00-464b-a52a-0599d181915f', 'google-earth', 'Google Earth Pro', NULL,
(SELECT id FROM kategorien WHERE key = 'app-store'), TRUE);
-- Anders als brave/onlyoffice/libreoffice kein Flatpak (Google vertreibt
-- keins) - die google-earth-Rolle installiert stattdessen .deb/.rpm direkt,
-- verzweigt intern nach os_family (siehe guest-session-Rolle als Vorbild).
-- Trotzdem ein einziger Rollenname für beide Backends.
INSERT INTO blueprints (id, merkmal_id, backend_id, ansible_role) VALUES
('c5e169c2-9b3f-4e00-9481-db8fd71401b5', '348e50c5-de00-464b-a52a-0599d181915f',
(SELECT id FROM backends WHERE key = 'fedora'), 'google-earth'),
('343d3c39-47bb-4724-bf32-21c9632f596d', '348e50c5-de00-464b-a52a-0599d181915f',
(SELECT id FROM backends WHERE key = 'mint'), 'google-earth');
COMMIT;