refactor: Make code more readable
This commit is contained in:
parent
cbf815f25b
commit
d546a84659
1 changed files with 4 additions and 2 deletions
|
|
@ -20,8 +20,10 @@ def setup_database(force, source_sql=None, verbose=False):
|
|||
source_sql = os.path.join(os.path.dirname(__file__), 'framework_postgres.sql')
|
||||
|
||||
subprocess.check_output([
|
||||
'psql', frappe.conf.db_name, '-h', frappe.conf.db_host or 'localhost',
|
||||
'-p', str(frappe.conf.db_port or '5432'), '-U', frappe.conf.db_name,
|
||||
'psql', frappe.conf.db_name,
|
||||
'-h', frappe.conf.db_host or 'localhost',
|
||||
'-p', str(frappe.conf.db_port or '5432'),
|
||||
'-U', frappe.conf.db_name,
|
||||
'-f', source_sql
|
||||
], env=subprocess_env)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue