From 15494324960ab8eccb87c9867cc45bc990f4444c Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 14 Nov 2022 09:16:46 +0000 Subject: hacking: update db instructions to use schema.sql Signed-off-by: Vlad-Stefan Harbuz --- configuration.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'configuration.md') diff --git a/configuration.md b/configuration.md index 0f6190d..c6e680e 100644 --- a/configuration.md +++ b/configuration.md @@ -126,11 +126,12 @@ its own database login, with full permissions for its database so that it may manage its own schema migrations. Once you populate the `connection-string` field in your `config.ini`, you may -use the `-initdb` script to populate the schema and stamp the latest -revision for migrations (e.g., `metasrht-initdb` to set up meta.sr.ht's -database). Note that if you have not configured SSL for your PostgreSQL server, -you may have to append `?sslmode=disable` to your connection string for some -services to work. +use the `schema.sql` file to populate the database (e.g. +`psql -d meta.sr.ht -f schema.sql` to set up meta.sr.ht's database). + +Note that if you have not configured SSL for your PostgreSQL server, you may +have to append `?sslmode=disable` to your connection string for some services +to work. ## Schema Upgrades -- cgit