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