From 29bfd3aaf79f969eba366c60653bc35583647a96 Mon Sep 17 00:00:00 2001 From: postables Date: Sun, 17 May 2020 19:10:04 -0700 Subject: [PATCH] sql: update readme to note table deletion mechanics --- sql/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/README.md b/sql/README.md index 9bd57d9..4eaafac 100644 --- a/sql/README.md +++ b/sql/README.md @@ -13,7 +13,11 @@ ## Easy (Automatic) -The `postgres` datastore has some helper utility to enable automatic table and index creation, as well as the ability to recreate the table by dropping it, and creating it. Note that this setting requires `RunMigrations` also set to true. If not the `CreateIndex` setting will be ignored. The following options can be used to enable table creation, and index creation: +The `postgres` datastore has some helper utility to enable automatic table and index creation, as well as the ability to recreate the table by dropping it, and creating it. Note that this setting requires `RunMigrations` also set to true. If not the `CreateIndex` setting will be ignored. Additionally note that we will never delete tables unless specified. + +Note that we will never delete tables automatically, and tables will only be deleted when `RecreateTables` is set to true, and `AcceptRecreateWarning` is set to the value of `RecreateTables`. Additionally you must make sure to set `RunMigrations` otherwise we wont actually create the tables, and instead just delete the existing tables. + +The following options can be used to enable table creation, and index creation: ```Go