mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc: explain how to use extensions in migrations (#4140)
This commit is contained in:
8
examples/extensions/migrations/20240713193406.sql
Normal file
8
examples/extensions/migrations/20240713193406.sql
Normal 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")
|
||||
);
|
||||
2
examples/extensions/migrations/atlas.sum
Normal file
2
examples/extensions/migrations/atlas.sum
Normal file
@@ -0,0 +1,2 @@
|
||||
h1:nLG+8sJwFB3bY6BsjcEhWSeRARZsCr3ICC3w2k4tcWA=
|
||||
20240713193406.sql h1:VZ/52R1KUiNUNVwjfRP/CrNAN9+sITR2p3QibFp0Uog=
|
||||
Reference in New Issue
Block a user