mirror of https://github.com/zulip/zulip.git
tools: Rename postgres to postgresql in tool names.
This commit is contained in:
parent
5eb8064a1a
commit
2b0bbbb882
|
@ -36,7 +36,7 @@ jobs:
|
|||
env:
|
||||
# GitHub Actions sets HOME to /github/home which causes
|
||||
# problem later in provison and frontend test that runs
|
||||
# tools/setup/postgres-init-dev-db because of the .pgpass
|
||||
# tools/setup/postgresql-init-dev-db because of the .pgpass
|
||||
# location. PostgreSQL (psql) expects .pgpass to be at
|
||||
# /home/github/.pgpass and setting home to `/home/github/`
|
||||
# ensures it written there because we write it to ~/.pgpass.
|
||||
|
|
|
@ -242,9 +242,9 @@ else
|
|||
sudo cp ./puppet/zulip/files/postgresql/zulip_english.stop /usr/share/postgresql/*/tsearch_data/
|
||||
fi
|
||||
./scripts/setup/configure-rabbitmq
|
||||
./tools/setup/postgres-init-dev-db
|
||||
./tools/setup/postgresql-init-dev-db
|
||||
./tools/rebuild-dev-database
|
||||
./tools/setup/postgres-init-test-db
|
||||
./tools/setup/postgresql-init-test-db
|
||||
./tools/rebuild-test-database
|
||||
./manage.py compilemessages
|
||||
```
|
||||
|
|
|
@ -240,7 +240,7 @@ directory that would contain configuration files
|
|||
list of stopwords used by a PostgreSQL extension.
|
||||
|
||||
In a development environment, configuration of that PostgreSQL
|
||||
extension is handled by `tools/postgres-init-dev-db` (invoked by
|
||||
extension is handled by `tools/postgresql-init-dev-db` (invoked by
|
||||
`tools/provision`). That file also manages setting up the
|
||||
development PostgreSQL user.
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ To restore from a manual backup, the process is basically the reverse of the abo
|
|||
from your backups.
|
||||
|
||||
* If you ran `initialize-database` anyway above, you'll want to run
|
||||
`scripts/setup/postgres-init-db` to drop the initial database first.
|
||||
`scripts/setup/postgresql-init-db` to drop the initial database first.
|
||||
|
||||
* Restore your database from the backup.
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@ Previous versions of Zulip used whatever version of PostgreSQL was
|
|||
included with the base operating system (E.g. PostgreSQL 12 on Ubuntu
|
||||
Focal, 10 on Ubuntu Bionic, and 9.6 on Ubuntu Xenial). We recommend
|
||||
that installations currently using older PostgreSQL releases [upgrade to
|
||||
PostgreSQL 12][upgrade-postgres], as may drop support for older PostgreSQL
|
||||
PostgreSQL 12][upgrade-postgresql], as may drop support for older PostgreSQL
|
||||
in a future release.
|
||||
|
||||
[upgrade-postgres]: ../production/upgrade-or-modify.html#upgrading-postgresql
|
||||
[upgrade-postgresql]: ../production/upgrade-or-modify.html#upgrading-postgresql
|
||||
|
||||
#### Remote PostgreSQL database
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ instructions for other supported platforms.
|
|||
4. As root, upgrade the database to the latest version of PostgreSQL:
|
||||
|
||||
```
|
||||
/home/zulip/deployments/current/scripts/setup/upgrade-postgres
|
||||
/home/zulip/deployments/current/scripts/setup/upgrade-postgresql
|
||||
```
|
||||
|
||||
5. Finally, we need to reinstall the current version of Zulip, which
|
||||
|
@ -423,10 +423,10 @@ To upgrade the version of PostgreSQL on the Zulip server:
|
|||
3. As root, run the database upgrade tool:
|
||||
|
||||
```
|
||||
/home/zulip/deployments/current/scripts/setup/upgrade-postgres
|
||||
/home/zulip/deployments/current/scripts/setup/upgrade-postgresql
|
||||
```
|
||||
|
||||
`upgrade-postgres` will have finished by restarting your Zulip server;
|
||||
`upgrade-postgresql` will have finished by restarting your Zulip server;
|
||||
you should now be able to navigate to its URL and confirm everything
|
||||
is working correctly.
|
||||
|
||||
|
|
|
@ -497,7 +497,7 @@ EOF
|
|||
fi
|
||||
|
||||
if has_class "zulip::postgresql_common" && [ -z "$NO_INIT_DB" ]; then
|
||||
"$ZULIP_PATH"/scripts/setup/postgres-init-db
|
||||
"$ZULIP_PATH"/scripts/setup/postgresql-init-db
|
||||
fi
|
||||
|
||||
if has_class "zulip::app_frontend_base"; then
|
||||
|
|
|
@ -39,7 +39,7 @@ fi
|
|||
)
|
||||
|
||||
# Capture the output so we know where the path to the post-upgrade scripts is
|
||||
UPGRADE_LOG=$(mktemp "/var/log/zulip/postgres-upgrade-$UPGRADE_FROM-$UPGRADE_TO.XXXXXXXXX.log")
|
||||
UPGRADE_LOG=$(mktemp "/var/log/zulip/upgrade-postgresql-$UPGRADE_FROM-$UPGRADE_TO.XXXXXXXXX.log")
|
||||
pg_upgradecluster -v "$UPGRADE_TO" "$UPGRADE_FROM" main --method=upgrade --link | tee "$UPGRADE_LOG"
|
||||
SCRIPTS_PATH=$(grep -o "/var/log/postgresql/pg_upgradecluster-$UPGRADE_FROM-$UPGRADE_TO-main.*" "$UPGRADE_LOG" || true)
|
||||
|
|
@ -9,7 +9,7 @@ if [ "$CIRCLECI" = true ]; then
|
|||
fi
|
||||
|
||||
supervisorctl stop all
|
||||
"$ZULIP_PATH"/scripts/setup/upgrade-postgres
|
||||
"$ZULIP_PATH"/scripts/setup/upgrade-postgresql
|
||||
supervisorctl start all
|
||||
|
||||
echo "Upgrade of PostgreSQL complete!"
|
||||
|
|
|
@ -252,7 +252,7 @@ def main(options: argparse.Namespace) -> int:
|
|||
|
||||
dev_template_db_status = DEV_DATABASE.template_status()
|
||||
if options.is_force or dev_template_db_status == 'needs_rebuild':
|
||||
run(["tools/setup/postgres-init-dev-db"])
|
||||
run(["tools/setup/postgresql-init-dev-db"])
|
||||
if options.skip_dev_db_build:
|
||||
# We don't need to build the manual development
|
||||
# database on CircleCI for running tests, so we can
|
||||
|
@ -271,7 +271,7 @@ def main(options: argparse.Namespace) -> int:
|
|||
|
||||
test_template_db_status = TEST_DATABASE.template_status()
|
||||
if options.is_force or test_template_db_status == 'needs_rebuild':
|
||||
run(["tools/setup/postgres-init-test-db"])
|
||||
run(["tools/setup/postgresql-init-test-db"])
|
||||
run(["tools/rebuild-test-database"])
|
||||
TEST_DATABASE.write_new_db_digest()
|
||||
elif test_template_db_status == 'run_migrations':
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
set -e
|
||||
|
||||
"$(dirname "$0")/postgres-init-dev-db" test
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
set -e
|
||||
|
||||
"$(dirname "$0")/postgresql-init-dev-db" test
|
|
@ -33,8 +33,8 @@ IMPORTANT_FILES = [
|
|||
'zerver/lib/bulk_create.py',
|
||||
'zerver/lib/generate_test_data.py',
|
||||
'zerver/lib/server_initialization.py',
|
||||
'tools/setup/postgres-init-test-db',
|
||||
'tools/setup/postgres-init-dev-db',
|
||||
'tools/setup/postgresql-init-test-db',
|
||||
'tools/setup/postgresql-init-dev-db',
|
||||
'zerver/migrations/0258_enable_online_push_notifications_default.py',
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue