From 2bfab5f58b77002b1838b52f6edc369ea280ced7 Mon Sep 17 00:00:00 2001 From: S7evinK Date: Mon, 5 Oct 2020 12:28:10 +0200 Subject: [PATCH] Add example goose sqlite3 migration (#1474) Signed-off-by: Till Faelligen --- cmd/goose/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/goose/README.md b/cmd/goose/README.md index c7f085d8..725c6a58 100644 --- a/cmd/goose/README.md +++ b/cmd/goose/README.md @@ -104,4 +104,6 @@ You __must__ import the package in `/cmd/goose/main.go` so `func init()` gets ca #### Database limitations - SQLite3 does NOT support `ALTER TABLE table_name DROP COLUMN` - you would have to rename the column or drop the table - entirely and recreate it. + entirely and recreate it. ([example](https://github.com/matrix-org/dendrite/blob/master/userapi/storage/accounts/sqlite3/deltas/20200929203058_is_active.sql)) + + More information: [sqlite.org](https://www.sqlite.org/lang_altertable.html)