Skip to content

Commit

Permalink
recreate extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
swiffer committed Sep 29, 2024
1 parent 2e26ffd commit c6c4eec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defmodule TeslaMate.Repo.Migrations.RecreateGeoExtensions do
use Ecto.Migration

def change do
execute("DROP EXTENSION cube CASCADE")
execute("CREATE EXTENSION cube WITH SCHEMA public")
execute("CREATE EXTENSION earthdistance WITH SCHEMA public")
end
end
2 changes: 0 additions & 2 deletions website/docs/maintenance/backup_restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
CREATE EXTENSION cube WITH SCHEMA public;
CREATE EXTENSION earthdistance WITH SCHEMA public;
ALTER FUNCTION ll_to_earth SET search_path = public;
ALTER FUNCTION earth_box SET search_path = public;
.

# Restore
Expand Down

0 comments on commit c6c4eec

Please sign in to comment.