Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
storjstatus-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
James Coyle
storjstatus-client
Commits
84bbc65c
Commit
84bbc65c
authored
Mar 28, 2018
by
James Coyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated db script
parent
148d3463
Pipeline
#1243
failed with stages
in 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
update-db.py
update-db.py
+4
-4
No files found.
update-db.py
View file @
84bbc65c
import
os
import
setuptools
from
crate.client
import
connect
exec
(
open
(
'storjstatus/version.py'
).
read
())
def
main
():
exec
(
open
(
'storjstatus/version.py'
).
read
())
print
(
"Updating database to version "
+
__VERSION__
)
print
(
"Updating database to version "
+
__version__
)
connection
=
connect
(
'data2.jamescoyle.net:4200'
)
cursor
=
connection
.
cursor
()
cursor
.
execute
(
"UPDATE storj.settings SET setting_value = '"
+
__
VERSION
__
+
"' WHERE setting_name = 'storjstatus-client-version' "
)
cursor
.
execute
(
"UPDATE storj.settings SET setting_value = '"
+
__
version
__
+
"' WHERE setting_name = 'storjstatus-client-version' "
)
if
__name__
==
"__main__"
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment