Commit 84bbc65c authored by James Coyle's avatar James Coyle

Updated db script

parent 148d3463
Pipeline #1243 failed with stages
in 3 seconds
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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment