diff options
author | Vlad-Stefan Harbuz <vlad@vladh.net> | 2022-11-14 09:16:46 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2022-11-21 17:18:00 +0100 |
commit | 15494324960ab8eccb87c9867cc45bc990f4444c (patch) | |
tree | c8bb61e5f3c546c4cb9420f32f1694376ca3b2b2 /configuration.md | |
parent | 3a1ae0d9362aacf468433a30beb306849e5ca899 (diff) | |
download | sr.ht-docs-15494324960ab8eccb87c9867cc45bc990f4444c.tar.gz |
hacking: update db instructions to use schema.sql
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'configuration.md')
-rw-r--r-- | configuration.md | 11 |
1 files changed, 6 insertions, 5 deletions
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 `<module>-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 |