Skip to content

Commit

Permalink
sql: update readme to note table deletion mechanics
Browse files Browse the repository at this point in the history
  • Loading branch information
postables committed May 18, 2020
1 parent d5f08d3 commit 29bfd3a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29bfd3a

Please sign in to comment.