Commit 8e8c60a4 authored by Prajkta_Patkar's avatar Prajkta_Patkar
Browse files

repeated lines removed also corrected

parent 5d8f4b8c
......@@ -125,8 +125,8 @@ class api_organisation(object):
self.con.execute("alter table invoice add consignee jsonb, add sourcestate text ,add discount jsonb ,add taxflag integer default 22, add reversecharge text, add bankdetails jsonb,add transportationmode text,add vehicleno text,add dateofsupply timestamp")
self.con.execute("update invoice set taxflag = 22 ")
self.con.execute("alter table delchal drop column issuerid")
# self.con.execute("ALTER TABLE delchal DROP CONSTRAINT delchal_custid_fkey, ADD CONSTRAINT delchal_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
# self.con.execute("ALTER TABLE invoice DROP CONSTRAINT invoice_custid_fkey, ADD CONSTRAINT invoice_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
self.con.execute("ALTER TABLE delchal DROP CONSTRAINT delchal_custid_fkey, ADD CONSTRAINT delchal_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
self.con.execute("ALTER TABLE invoice DROP CONSTRAINT invoice_custid_fkey, ADD CONSTRAINT invoice_custid_fkey FOREIGN KEY (custid) REFERENCES customerandsupplier(custid)")
self.con.execute("alter table organisation add gstin jsonb")
self.con.execute("alter table product alter specs drop not null,alter uomid drop not null")
#self.con.execute("alter table invoice add consignee jsonb")
......@@ -135,7 +135,6 @@ class api_organisation(object):
self.con.execute("alter table product add gsflag integer")
self.con.execute("update product set gsflag = 7")
self.con.execute("alter table product add gscode text")
self.con.execute("alter table organisation add gstin text")
self.con.execute("alter table product alter specs drop not null,alter uomid drop not null")
self.con.execute("alter table invoice add consignee jsonb")
......
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