From 54c3e13725d5ff0c311c9308625b3337c1f6ab57 Mon Sep 17 00:00:00 2001 From: Timo Schneider Date: Wed, 5 Jun 2024 12:04:59 +0200 Subject: [PATCH] added extensions to calculate distance from location --- init/00_InitDB.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/00_InitDB.sql b/init/00_InitDB.sql index 7dce65b..443b78d 100644 --- a/init/00_InitDB.sql +++ b/init/00_InitDB.sql @@ -3,6 +3,9 @@ DROP TABLE IF EXISTS Posts; DROP TABLE IF EXISTS Answers; DROP TABLE IF EXISTS Reaction; +CREATE EXTENSION cube; +CREATE EXTENSION earthdistance; + CREATE TABLE Users ( id bigserial PRIMARY KEY,