Skip to content

Commit 9642cff

Browse files
committed
Adjust Migrations doc
1 parent 5379ea4 commit 9642cff

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

β€Ždocs/migrations.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
1-
# Build your App
2-
3-
## Project Structure
4-
5-
```
6-
πŸ“ bin/ β†’ Helper scripts (e.g. wrappers for CLI tools)
7-
πŸ“ caddy/ β†’ Custom Caddy configuration and certificates
8-
πŸ“ docs/ β†’ Markdown files for SuperStack documentation
9-
πŸ“ postgres/ β†’ SQL migrations and configuration of the postgres container
10-
πŸ“„ compose.yaml β†’ Main Docker Compose config
11-
πŸ“„ compose.override.yaml β†’ Optional local overrides (development only)
12-
πŸ“„ example.env β†’ Example environment variables β€” copy to `.env`
13-
πŸ“„ LICENSE β†’ License file (MIT)
14-
πŸ“„ logo.png β†’ SuperStack logo for README/docs
15-
πŸ“„ mkdocs.yml β†’ MkDocs configuration for documentation site
16-
πŸ“„ README.md β†’ Overview and quick start for the repository
17-
```
18-
19-
## πŸ“œ Migrations
1+
# πŸ“œ Migrations
202

213
SuperStack includes a simple built-in system for managing database schema
224
migrations.
235

24-
### ✍️ Writing Migrations
6+
## ✍️ Writing Migrations
257

268
Place your migration scripts in:
279

@@ -36,7 +18,7 @@ Each file should be:
3618
- Written in plain SQL
3719
- But can include environment variables.
3820

39-
### ▢️ Applying Migrations
21+
## ▢️ Applying Migrations
4022

4123
When the Postgres container starts with no existing data, SuperStack will
4224
automatically run migrations once.
@@ -59,7 +41,7 @@ Already-applied scripts are skipped on subsequent runs.
5941

6042
> πŸ’‘ `bin/postgres` is short for `docker compose exec postgres`
6143
62-
### πŸ” Transactions
44+
## πŸ” Transactions
6345

6446
Use `BEGIN;` and `COMMIT;` to wrap migration files when all included
6547
statements are transactional. This ensures that all changes are applied
@@ -108,7 +90,7 @@ DISCARD ALL
10890
LOAD
10991
```
11092

111-
### πŸ”„ Nuke Everything
93+
## πŸ”„ Nuke Everything
11294

11395
If you want to start fresh, wipe your database and re-run all migrations from
11496
scratch:

0 commit comments

Comments
Β (0)