From a6bb843cee1aca2a96e81447a805e9c7ff18d71a Mon Sep 17 00:00:00 2001 From: Max Schettler Date: Wed, 11 Feb 2026 01:41:35 +0100 Subject: [PATCH] Fix migration password reset Currently, the migration script resets the postgres user's password. Potentially overwriting a user set password. This change modifies the migration s.t. only the supabase_admin password is set, leaving the user-managed password untouched. --- .../boards/qemu-common/rootfs_overlay/usr/local/bin/migrate.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/prototype/boards/qemu-common/rootfs_overlay/usr/local/bin/migrate.sh b/prototype/boards/qemu-common/rootfs_overlay/usr/local/bin/migrate.sh index 5441ff2..f142d64 100755 --- a/prototype/boards/qemu-common/rootfs_overlay/usr/local/bin/migrate.sh +++ b/prototype/boards/qemu-common/rootfs_overlay/usr/local/bin/migrate.sh @@ -16,7 +16,6 @@ dbmate \ --no-dump-schema up psql -v ON_ERROR_STOP=1 -U vela -d postgres -c " - ALTER USER postgres WITH PASSWORD '$PGPASSWORD'; ALTER USER supabase_admin WITH PASSWORD '$PGPASSWORD'; "