Skip to content
Snippets Groups Projects
Commit a0b58ac0 authored by alvaro's avatar alvaro
Browse files

Adding creationg of indexes in installation script for sqlite

parent be60c355
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,9 @@ if [ ! -e $1 ]; then
exit 1
fi
$SQLITE3 $1 'CREATE TABLE document (uri varcharg(1000), doc varchar(1000), format varchar(50));'
$SQLITE3 $1 'CREATE INDEX IF NOT EXISTS document_uri ON document(uri);'
$SQLITE3 $1 'CREATE INDEX IF NOT EXISTS document_uri_format ON document(uri, format);'
$SQLITE3 $1 'CREATE INDEX IF NOT EXISTS document_doc ON document(doc);'
else
echo "WARNING: SQLite database already exists."
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment