add features
This commit is contained in:
@@ -5,12 +5,15 @@
|
|||||||
ALTER TABLE ausruestung_kategorien
|
ALTER TABLE ausruestung_kategorien
|
||||||
ADD COLUMN IF NOT EXISTS motorisiert BOOLEAN NOT NULL DEFAULT FALSE;
|
ADD COLUMN IF NOT EXISTS motorisiert BOOLEAN NOT NULL DEFAULT FALSE;
|
||||||
|
|
||||||
-- Recreate the helper view to include the new column
|
-- DROP + CREATE is required because CREATE OR REPLACE VIEW cannot change the
|
||||||
CREATE OR REPLACE VIEW ausruestung_mit_pruefstatus AS
|
-- column list of an existing view (PostgreSQL error 42P16).
|
||||||
|
DROP VIEW IF EXISTS ausruestung_mit_pruefstatus;
|
||||||
|
|
||||||
|
CREATE VIEW ausruestung_mit_pruefstatus AS
|
||||||
SELECT
|
SELECT
|
||||||
a.*,
|
a.*,
|
||||||
k.name AS kategorie_name,
|
k.name AS kategorie_name,
|
||||||
k.kurzname AS kategorie_kurzname,
|
k.kurzname AS kategorie_kurzname,
|
||||||
k.motorisiert AS kategorie_motorisiert,
|
k.motorisiert AS kategorie_motorisiert,
|
||||||
f.bezeichnung AS fahrzeug_bezeichnung,
|
f.bezeichnung AS fahrzeug_bezeichnung,
|
||||||
f.kurzname AS fahrzeug_kurzname,
|
f.kurzname AS fahrzeug_kurzname,
|
||||||
|
|||||||
Reference in New Issue
Block a user