 -- simple rupture view, needed for Opengeo server integration
 CREATE VIEW pshai.simple_rupture (
     id, owner_id, gid, name, description, si_type, tectonic_region, rake,
-    simple_fault, fault_outline) AS
+    magnitude, magnitude_type, edge, fault_outline) AS
 SELECT
     rup.id, rup.owner_id, rup.gid, rup.name, rup.description, rup.si_type,
     rup.tectonic_region, rup.rake, rup.magnitude, rup.magnitude_type,

-- simple source view, needed for Opengeo server integration
CREATE VIEW pshai.simple_source (
    id, owner_id, gid, name, description, si_type, tectonic_region, rake,
    simple_fault, fault_outline) AS
SELECT
    src.id, src.owner_id, src.gid, src.name, src.description, src.si_type,
    src.tectonic_region, src.rake, sfault.edge, sfault.outline

-- complex rupture view, needed for Opengeo server integration
CREATE VIEW pshai.complex_rupture (
    id, owner_id, gid, name, description, si_type, tectonic_region, rake,
    magnitude, magnitude_type, top_edge, bottom_edge, fault_outline) AS
SELECT
    rup.id, rup.owner_id, rup.gid, rup.name, rup.description, rup.si_type,
    rup.tectonic_region, rup.rake, rup.magnitude, rup.magnitude_type,
