Skip to content
Snippets Groups Projects
Commit f831694e authored by Marcin's avatar Marcin Committed by Dan Notestein
Browse files

remove intarray dependency

parent e7e9c55a
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!677[#235] add unique constraint to hive_post_tag
......@@ -51,13 +51,6 @@ developers with a more flexible/extensible alternative to the raw hived API.
Hivemind is a [HAF](https://gitlab.syncad.com/hive/haf)-based application. To work properly it requires an existing
and working HAF database.
Hivemind also requires the postgresql `intarray` extension to be installed. The postgresql user who has `CREATE`
privilege can load the module with following command:
```postgresql
CREATE EXTENSION IF NOT EXISTS intarray;
```
Clone the hivemind repository with its submodules:
```bash
......
......@@ -543,9 +543,6 @@ def create_fk(db):
def setup(db, admin_db):
"""Creates all tables and seed data"""
sql = """SELECT * FROM pg_extension WHERE extname='intarray'"""
assert admin_db.query_row(sql), "The database requires created 'intarray' extension"
# create schema and aux functions
admin_db.query(f'CREATE SCHEMA IF NOT EXISTS {SCHEMA_NAME} AUTHORIZATION {SCHEMA_OWNER_NAME};')
......
do $$
BEGIN
ASSERT EXISTS (SELECT * FROM pg_extension WHERE extname='intarray'), 'The database requires created "intarray" extension';
ASSERT (SELECT setting FROM pg_settings where name='join_collapse_limit' and source='database')::int = 16, 'Bad optimizer settings, use install_app.sh script to setup target database correctly';
ASSERT (SELECT setting FROM pg_settings where name='from_collapse_limit' and source='database')::int = 16, 'Bad optimizer settings, use install_app.sh script to setup target database correctly';
ASSERT (SELECT setting FROM pg_settings where name='jit' and source='database')::BOOLEAN = False, 'Bad optimizer settings, use install_app.sh script to setup target database correctly';
......
-- Script contains all ADMINISTRATIVE steps required to setup a target database for Hivemind App
CREATE EXTENSION IF NOT EXISTS intarray;
DO $$
DECLARE
__version INT;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment