From 1cda5c0eabf9226fee513e23eae1f5ec5c80140c Mon Sep 17 00:00:00 2001 From: Rein Krul Date: Sat, 25 May 2024 13:14:31 +0200 Subject: [PATCH] Storage: update migrations readme --- storage/sql_migrations/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/sql_migrations/README.md b/storage/sql_migrations/README.md index 2bce392e2b..51c900894f 100644 --- a/storage/sql_migrations/README.md +++ b/storage/sql_migrations/README.md @@ -1,9 +1,9 @@ This directory contains SQL schema migrations, run at startup of the node. -Refer to https://github.com/amacneil/dbmate on how to write migrations. +Refer to https://pressly.github.io/goose/ on how to write migrations. -Files should be named according to the following: `__.sql`. -For instance: `002_usecase_list.sql`. Each file should contain `-- migrate:up` and `-- migrate:down` +Files should be named according to the following: `_
.sql`. +For instance: `002_usecase_list.sql`. Each file should contain `-- +goose Up` and `-- +goose Down` AVOID changing migrations in master (unless the migration breaks the node horribly) for those running a `master` version. DO NOT alter migrations in a released version: it might break vendor deployments or cause data corruption.