You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: migrations/README.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,8 @@ nix run github:supabase/postgres/mybranch#dbmate-tool -- --version 15
42
42
43
43
aiming to provide a single source of truth for migrations on the platform that can be depended upon by those components. For more information on goals see [the RFC](https://www.notion.so/supabase/Centralize-SQL-Migrations-cd3847ae027d4f2bba9defb2cc82f69a)
44
44
45
+
46
+
45
47
## How it was Created
46
48
47
49
Migrations were pulled (in order) from:
@@ -51,8 +53,9 @@ Migrations were pulled (in order) from:
51
53
52
54
For compatibility with hosted projects, we include [migrate.sh](migrate.sh) that executes migrations in the same order as ami build:
53
55
54
-
1. Run all `db/migrations` with `supabase_admin` superuser role.
55
-
2. Finalize role passwords with `/etc/postgresql.schema.sql` if present.
56
+
1. Run all `db/init-scripts` with `postgres` superuser role.
57
+
2. Run all `db/migrations` with `supabase_admin` superuser role.
58
+
3. Finalize role passwords with `/etc/postgresql.schema.sql` if present.
56
59
57
60
Additionally, [supabase/postgres](https://github.com/supabase/postgres/blob/develop/ansible/playbook-docker.yml#L9) image contains several migration scripts to configure default extensions. These are run first by docker entrypoint and included in ami by ansible.
0 commit comments