Skip to content

Commit 762c031

Browse files
committed
Adjust extensions doc
1 parent cdfd75f commit 762c031

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

docs/extensions.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,6 @@
33
SuperStack supports PostgreSQL extensions, letting you add powerful
44
features like cryptographic functions or JWT handling.
55

6-
## 🔌 Loading a Built-In Extension
7-
8-
To load a standard extension (like pgcrypto), create a migration file such
9-
as:
10-
11-
```sql
12-
-- File: postgres/migrations/01-extensions.sql
13-
14-
create extension pgcrypto;
15-
```
16-
17-
> ⚠️ `create extension` is non-transactional, so don’t wrap this in
18-
> `BEGIN/COMMIT`.
19-
206
## 🛠️ Building an Extension from Source
217

228
Some extensions (like [pgjwt](https://github.com/michelp/pgjwt)) must be
@@ -56,3 +42,14 @@ docker compose build postgres
5642
```
5743

5844
That’s it — the extension is now available to load in your migrations.
45+
46+
## 🔌 Loading an Extension
47+
48+
To load a standard extension (like pgcrypto), create a migration file such as:
49+
50+
```sql title="postgres/migrations/01-extensions.sql"
51+
create extension pgcrypto;
52+
```
53+
54+
> ⚠️ `create extension` is non-transactional, so don’t wrap this in
55+
> `BEGIN/COMMIT`.

0 commit comments

Comments
 (0)