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
Fixes#1437
+ Moves migrations/db/init-scripts to migrations/db/migrations.
+ Make initial migrations idempotent.
+ Adds test for event triggers.
+ explicit alter default privs using the postgres role
Copy file name to clipboardexpand all lines: migrations/README.md
+2-5
Original file line number
Diff line number
Diff line change
@@ -42,8 +42,6 @@ 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
-
47
45
## How it was Created
48
46
49
47
Migrations were pulled (in order) from:
@@ -53,9 +51,8 @@ Migrations were pulled (in order) from:
53
51
54
52
For compatibility with hosted projects, we include [migrate.sh](migrate.sh) that executes migrations in the same order as ami build:
55
53
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.
54
+
1. Run all `db/migrations` with `supabase_admin` superuser role.
55
+
2. Finalize role passwords with `/etc/postgresql.schema.sql` if present.
59
56
60
57
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