mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
fix(portal): alter db user role with replication (#8952)
We need the `replication` attribute set on the db user. This is trivially done in a migration, and with the `CURRENT_USER` specifier, we don't need to fetch the Application configuration.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
defmodule Domain.Repo.Migrations.AlterRoleWithReplication do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute("ALTER ROLE CURRENT_USER WITH REPLICATION")
|
||||
end
|
||||
|
||||
def down do
|
||||
execute("ALTER ROLE CURRENT_USER WITH NOREPLICATION")
|
||||
end
|
||||
end
|
||||
Submodule terraform/environments updated: c5d2600300...4663545073
Reference in New Issue
Block a user