99 | | db(db.gis_location.name=="Baluchistan").update(name="Balochistan") |
100 | | db(db.gis_location.name=="Northern Areas").update(name="Gilgit Baltistan") |
101 | | db(db.gis_location.name=="N.W.F.P.").update(name="Khyber Pakhtunkhwa") |
102 | | db(db.gis_location.name=="F.A.T.A.").update(name="FATA") |
103 | | db(db.gis_location.name=="F.C.T.").update(name="Islamabad") |
104 | | db(db.gis_location.name=="Azad Kashmir").update(name="AJK") |
| 102 | db(table.name=="Baluchistan").update(name="Balochistan") |
| 103 | db(table.name=="Northern Areas").update(name="Gilgit Baltistan") |
| 104 | db(table.name=="N.W.F.P.").update(name="Khyber Pakhtunkhwa") |
| 105 | db(table.name=="F.A.T.A.").update(name="FATA") |
| 106 | db(table.name=="F.C.T.").update(name="Islamabad") |
| 107 | db(table.name=="Azad Kashmir").update(name="AJK") |
106 | | db(db.gis_location.name=="Sind").update(name="Sindh") |
107 | | db(db.gis_location.name=="AJK").update(name="Pakistan Administered Kashmir") |
108 | | db(db.gis_location.name=="Islamabad").update(name="Federal Capital Territory") |
109 | | db(db.gis_location.name=="FATA").update(name="Federally Administered Tribal Areas") |
| 109 | db(table.name=="Sind").update(name="Sindh") |
| 110 | db(table.name=="AJK").update(name="Pakistan Administered Kashmir") |
| 111 | db(table.name=="Islamabad").update(name="Federal Capital Territory") |
| 112 | db(table.name=="FATA").update(name="Federally Administered Tribal Areas") |
112 | | db(db.gis_location.name=="Islamabad Capital Territory").update(name="Islamabad") |
113 | | db(db.gis_location.name=="Jaccobabad").update(name="Jacobabad") |
114 | | db(db.gis_location.name=="Tando Allahyar").update(name="Tando Allah Yar") |
115 | | db(db.gis_location.name=="Qambar Shahdad kot").update(name="Qambar Shahdadkot") |
| 115 | db(table.name=="Islamabad Capital Territory").update(name="Islamabad") |
| 116 | db(table.name=="Jaccobabad").update(name="Jacobabad") |
| 117 | db(table.name=="Tando Allahyar").update(name="Tando Allah Yar") |
| 118 | db(table.name=="Qambar Shahdad kot").update(name="Qambar Shahdadkot") |
117 | | db(db.gis_location.name=="Islamabad").update(name="Islamabad Capital Territory") |
118 | | db(db.gis_location.name=="Tando Allah Yar").update(name="Tando Allahyar") |
119 | | db(db.gis_location.name=="Qambar Shahdadkot").update(name="Qambar Shahdad Kot") |
120 | | db(db.gis_location.name=="Leiah").update(name="Layyah") |
121 | | db(db.gis_location.name=="Leiah Tehsil").update(name="Layyah Tehsil") |
122 | | db(db.gis_location.name=="Kalur Kot Tehsil").update(name="Kallur Kot Tehsil") |
123 | | db(db.gis_location.name=="De-excluded Area").update(name="Tribal Area") |
124 | | db(db.gis_location.name=="De-excluded Area D.g Khan").update(name="Tribal Area") |
125 | | db.commit() |
| 120 | db(table.name=="Islamabad").update(name="Islamabad Capital Territory") |
| 121 | db(table.name=="Tando Allah Yar").update(name="Tando Allahyar") |
| 122 | db(table.name=="Qambar Shahdadkot").update(name="Qambar Shahdad Kot") |
| 123 | db(table.name=="Leiah").update(name="Layyah") |
| 124 | db(table.name=="Leiah Tehsil").update(name="Layyah Tehsil") |
| 125 | db(table.name=="Kalur Kot Tehsil").update(name="Kallur Kot Tehsil") |
| 126 | db(table.name=="De-excluded Area").update(name="Tribal Area") |
| 127 | db(table.name=="De-excluded Area D.g Khan").update(name="Tribal Area") |
| 128 | db.commit() |
| 129 | field = "name" |
| 130 | db.executesql("CREATE INDEX %s__idx on %s(%s);" % (field, tablename, field)) |