graphql-engine/server/src-rsr/clear_system_metadata.sql
Ajeet D'Souza a66fb42ce2 Make catalog metadata migrations work on all schema versions (fix #2826) (#2379)
* Separate DB and metadata migrations
* Refactor Migrate.hs to generate list of migrations at compile-time
* Replace ginger with shakespeare to improve performance
* Improve migration log messages
2019-10-11 00:13:57 -05:00

6 lines
366 B
SQL

DELETE FROM hdb_catalog.hdb_function WHERE is_system_defined = 'true';
DELETE FROM hdb_catalog.hdb_permission WHERE is_system_defined = 'true';
DELETE FROM hdb_catalog.hdb_relationship WHERE is_system_defined = 'true';
DELETE FROM hdb_catalog.hdb_table WHERE is_system_defined = 'true';
DELETE FROM hdb_catalog.hdb_query_collection WHERE is_system_defined = 'true';