diff --git a/book/generated-xml/persistent.xml b/book/generated-xml/persistent.xml index 8422fa94..8428b40e 100644 --- a/book/generated-xml/persistent.xml +++ b/book/generated-xml/persistent.xml @@ -48,7 +48,8 @@ Convenient data modeling. -Automatically perform database migrations +Automatic database migrations in non-production environments to speed up + development. @@ -461,6 +462,11 @@ main = runSqlite ":memory:" $ do With this one little code change, Persistent will automatically create your Person table for you. This split between runMigration and migrate allows you to migrate multiple tables simultaneously. +Using automated database migrations is only recommended in development +environments. Allowing your application to modify your database schema in +a production environment is very strongly discouraged. Automated migrations +can be used to help speed up development, but are not a replacement for manual +review and testing that should take place before production deployments. This works when dealing with just a few entities, but can quickly get tiresome once we are dealing with a dozen entities. Instead of repeating yourself, Persistent provides a helper function, mkMigrate: