Updated the readme file

remotes/origin/enhancement/email-actions
David Barragán Merino 2013-11-12 18:43:48 +01:00
parent b2c4f79d6d
commit 25eb34883b
2 changed files with 25 additions and 0 deletions

View File

@ -24,6 +24,29 @@ Just execute these commands in your virtualenv(wrapper):
python manage.py sample_data
python manage.py createinitialrevisions
You have to load the sql sentences of the file ``sql/tags.sql`` and your database
ust support PL/Python. You use an user with privileges in the database,
'greenmine' for example, to do this.
.. code-block:: console
psql greenmine
.. code-block:: sql
CREATE LANGUAGE plpythonu;
CREATE OR REPLACE FUNCTION unpickle (data text)
RETURNS text[]
AS $$
import base64
import pickle
return pickle.loads(base64.b64decode(data))
$$ LANGUAGE plpythonu IMMUTABLE;
CREATE INDEX issues_unpickle_tags_index ON issues_issue USING btree (unpickle(tags));
Note: greenmine only runs with python 3.3+.

View File

@ -1,3 +1,5 @@
CREATE LANGUAGE plpythonu;
CREATE OR REPLACE FUNCTION unpickle (data text)
RETURNS text[]
AS $$