doc: explain how to use extensions in migrations (#4140)

This commit is contained in:
Ariel Mashraki
2024-07-13 23:07:53 +03:00
committed by GitHub
parent 94f69b0acb
commit 1073ce511e
36 changed files with 3527 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
-- Create extension "postgis"
CREATE EXTENSION "postgis" WITH SCHEMA "public" VERSION "3.4.2";
-- Create "users" table
CREATE TABLE "public"."users" (
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"location" public.geometry(point,4326) NOT NULL,
PRIMARY KEY ("id")
);

View File

@@ -0,0 +1,2 @@
h1:nLG+8sJwFB3bY6BsjcEhWSeRARZsCr3ICC3w2k4tcWA=
20240713193406.sql h1:VZ/52R1KUiNUNVwjfRP/CrNAN9+sITR2p3QibFp0Uog=