Commit 9d3e11bf authored by Prajkta_Patkar's avatar Prajkta_Patkar
Browse files

print statement added at last of gkupgrade

parent 9f2947a9
......@@ -177,6 +177,7 @@ class api_organisation(object):
self.con.execute("alter table purchaseorder add foreign key(togodown) references godown(goid)")
self.con.execute("create table usergodown(ugid serial, goid integer, userid integer, orgcode integer, primary key(ugid), foreign key (goid) references godown(goid), foreign key (userid) references users(userid), foreign key (orgcode) references organisation(orgcode))")
self.con.execute("create table log(logid serial, time timestamp, activity text, userid integer, orgcode integer, primary key (logid), foreign key(userid) references users(userid), foreign key (orgcode) references organisation(orgcode))")
print "Upgradation done"
#return 0
finally:
self.con.close()
......
Supports Markdown
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