Skip to content
Snippets Groups Projects
Commit 87653bae authored by thomaswoehlke's avatar thomaswoehlke
Browse files

working on 0.0.28 Release

parent 7c363505
No related branches found
No related tags found
No related merge requests found
Source diff could not be displayed: it is stored in LFS. Options to address this: view the blob.
File deleted
...@@ -27,7 +27,7 @@ class AdminService: ...@@ -27,7 +27,7 @@ class AdminService:
db = app.config['SQLALCHEMY_POSTGRES_DB'] db = app.config['SQLALCHEMY_POSTGRES_DB']
cmd = 'pg_dump -U '+user+' -h '+url+' '+db\ cmd = 'pg_dump -U '+user+' -h '+url+' '+db\
+' --clean --if-exists --no-tablespaces '\ +' --clean --if-exists --no-tablespaces '\
+' --on-conflict-do-nothing --rows-per-insert=200 --column-inserts '\ +' --on-conflict-do-nothing --rows-per-insert=1000 --column-inserts '\
+' --quote-all-identifiers --no-privileges > '\ +' --quote-all-identifiers --no-privileges > '\
+ self.file_path + self.file_path
app.logger.info(" start: "+str(cmd)) app.logger.info(" start: "+str(cmd))
...@@ -59,7 +59,7 @@ class AdminService: ...@@ -59,7 +59,7 @@ class AdminService:
url = app.config['SQLALCHEMY_POSTGRES_URL'] url = app.config['SQLALCHEMY_POSTGRES_URL']
db = app.config['SQLALCHEMY_POSTGRES_DB'] db = app.config['SQLALCHEMY_POSTGRES_DB']
cmd_list = [ cmd_list = [
'pgsql -U ' + user + ' -h ' + url + ' ' + db + ' < ' + self.file_path 'psql -U ' + user + ' -h ' + url + ' ' + db + ' < ' + self.file_path
] ]
for cmd in cmd_list: for cmd in cmd_list:
returncode = self.__run_ome_shell_command(cmd) returncode = self.__run_ome_shell_command(cmd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment