Show More
@@ -132,8 +132,10 b' def partitions_remove(request):' | |||
|
132 | 132 | csrf_context=request) |
|
133 | 133 | if form.validate(): |
|
134 | 134 | for ix in form.data['es_index']: |
|
135 | log.warning('deleting ES partition: {}'.format(ix)) | |
|
135 | 136 | Datastores.es.delete_index(ix) |
|
136 | 137 | for ix in form.data['pg_index']: |
|
138 | log.warning('deleting PG partition: {}'.format(ix)) | |
|
137 | 139 | stmt = sa.text('DROP TABLE %s CASCADE' % sa.text(ix)) |
|
138 | 140 | session = DBSession() |
|
139 | 141 | session.connection().execute(stmt) |
General Comments 0
You need to be logged in to leave comments.
Login now