Skip to content

Commit

Permalink
Add SQL command to drop 'rules' table if it exists (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga authored Aug 6, 2024
1 parent 5fde85d commit cca2f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/selfhosted/postgres-store.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit cca2f68

Please sign in to comment.