Skip to content

Commit

Permalink
Fixes divio#240
Browse files Browse the repository at this point in the history
Needs to be tested locally, wait.
  • Loading branch information
Andrei Jiroh Eugenio Halili authored Mar 3, 2021
1 parent 4227b1d commit 42f696d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions divio_cli/localdev/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,7 @@ def prepare_db_server_postgres(self, db_container_id, start_wait):
"-U",
"postgres",
"-c",
"SELECT pg_terminate_backend(pg_stat_activity.pid) "
"FROM pg_stat_activity "
"WHERE pg_stat_activity.datname = 'db' "
" AND pid <> pg_backend_pid();",
"SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'db' AND pid <> pg_backend_pid();",
],
silent=True,
)
Expand Down

0 comments on commit 42f696d

Please sign in to comment.