mirror of
https://github.com/zulip/zulip.git
synced 2026-06-27 21:01:32 +08:00
We can probably later merge the create-database code with that of our internal do-destroy-rebuild-database. (imported from commit 323932dbf2eb916545d6ebdda70eb1f5e1abb181)
12 lines
452 B
Bash
Executable File
12 lines
452 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
ln -s /var/cache/postgresql/dicts/en_us.dict /usr/share/postgresql/9.1/tsearch_data/en_us.dict
|
|
ln -s /var/cache/postgresql/dicts/en_us.affix /usr/share/postgresql/9.1/tsearch_data/en_us.affix
|
|
|
|
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
|
|
|
|
python manage.py syncdb --noinput
|
|
python manage.py migrate
|
|
python manage.py createcachetable third_party_api_results
|
|
python manage.py initialize_local_server_db
|