rouser=args.config.DATABASE_WEBUSER)
return 0
- if not args.prepare_database or \
- args.continue_at == 'import-from-file':
+ if args.continue_at == 'import-from-file':
# Check if the correct plugins are installed
database_import.check_existing_database_plugins(args.config.get_libpq_dsn())
LOG.warning('Setting up country tables')
""" Return True if the hstore extension is loaded in the database.
"""
with self.cursor() as cur:
- cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name))
+ cur.execute('SELECT extname FROM pg_extension WHERE extname = %s', (extension_name, ))
return cur.rowcount > 0