
db.db.endpoints.changelog-1.0.0.xml Maven / Gradle / Ivy
ALTER TABLE endpoints OWNER TO ${db.liquibase_user};
GRANT ALL ON TABLE endpoints TO ${db.liquibase_user};
GRANT SELECT, INSERT, UPDATE ON TABLE endpoints TO ${db.server_users_group};
GRANT SELECT, DELETE ON TABLE endpoints TO ${db.server_permanent_delete_users_group};
CREATE INDEX endpoint_id_index ON endpoints USING btree (endpoint_id);
CREATE INDEX endpoint_index ON endpoints USING gin (endpoint);
CREATE INDEX endpoint_id_version_index ON endpoints USING btree (endpoint_id, version);
SELECT endpoint_id, version, endpoint
FROM (
SELECT DISTINCT ON (endpoint_id) endpoint_id, version, deleted, endpoint
FROM endpoints ORDER BY endpoint_id, version DESC
) AS current_e
WHERE deleted IS NULL
ALTER TABLE current_endpoints OWNER TO ${db.liquibase_user};
GRANT ALL ON TABLE current_endpoints TO ${db.liquibase_user};
GRANT SELECT ON TABLE current_endpoints TO ${db.server_users_group};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy