From cca2f68b340db3c4e89ca832c0a8ba6de313014d Mon Sep 17 00:00:00 2001 From: Bethuel Mmbaga Date: Tue, 6 Aug 2024 23:53:02 +0300 Subject: [PATCH] Add SQL command to drop 'rules' table if it exists (#210) --- src/pages/selfhosted/postgres-store.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/selfhosted/postgres-store.mdx b/src/pages/selfhosted/postgres-store.mdx index 4db63bcf..c6aae982 100644 --- a/src/pages/selfhosted/postgres-store.mdx +++ b/src/pages/selfhosted/postgres-store.mdx @@ -68,6 +68,10 @@ DELETE FROM routes WHERE routes.account_id NOT IN (SELECT id FROM accounts); DELETE FROM name_server_groups WHERE name_server_groups.account_id NOT IN (SELECT id FROM accounts); ``` +```sql +DROP TABLE IF EXISTS rules; +``` + 4. Enable Postgres by updating the `management.json` file and setting the `Engine` field to `postgres` as the following example: ```json "StoreConfig": {