From 648fce5a6840b2d804bad6d21d19fdc9c7a1c94d Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Fri, 14 Oct 2022 20:11:12 +0200 Subject: [PATCH] Clarify database upgrades --- README.md | 4 ++++ upgrade_sqlite.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index b19456d..400be37 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ Lastly, run with: You will need a proxy such as nginx to access the forum on the public internet. +## Upgrading + +To upgrade from a previous version, run ``upgrade_sqlite.sh`` + ## Screenshots ![Index](https://static.agreper.com/index.png) diff --git a/upgrade_sqlite.sh b/upgrade_sqlite.sh index c845868..5837d8a 100755 --- a/upgrade_sqlite.sh +++ b/upgrade_sqlite.sh @@ -2,6 +2,10 @@ # Script to upgrade a database from one version to another by adding columns, # tables etc. +# Upgrade scripts go into upgrade/sqlite/ +# If there are multiple changes after a revision but before a new one, suffix a +# letter (e.g. `v0.1.1a`). +# When a new revision is out, add a script that changes just the version. LAST_VERSION=agreper-v0.1.1