equal
deleted
inserted
replaced
310 indexer = get_indexer(driver) |
310 indexer = get_indexer(driver) |
311 indexer.init_extensions(cursor) |
311 indexer.init_extensions(cursor) |
312 # postgres specific stuff |
312 # postgres specific stuff |
313 if driver == 'postgres': |
313 if driver == 'postgres': |
314 # install plpythonu/plpgsql language if not installed by the cube |
314 # install plpythonu/plpgsql language if not installed by the cube |
315 langs = sys.platform == 'win32' and ('plpgsql',) or ('plpythonu', 'plpgsql') |
315 langs = sys.platform == 'win32' and ('plpgsql',) or ('plpythonu', 'plpgsql') |
316 for extlang in langs: |
316 for extlang in langs: |
317 helper.create_language(cursor, extlang) |
317 helper.create_language(cursor, extlang) |
318 cursor.close() |
318 cursor.close() |
319 cnx.commit() |
319 cnx.commit() |
320 print '-> database for instance %s created and necessary extensions installed.' % appid |
320 print '-> database for instance %s created and necessary extensions installed.' % appid |