From 1848e5a944fa970a03e311d54e0cfe9c1ef0e825 Mon Sep 17 00:00:00 2001 From: doanguyen Date: Wed, 25 Dec 2019 20:58:06 +0100 Subject: [PATCH] Change migration filename To visually show the order of migrations --- migrations/alembic.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/alembic.ini b/migrations/alembic.ini index f8ed4801..b1b2d575 100644 --- a/migrations/alembic.ini +++ b/migrations/alembic.ini @@ -2,7 +2,7 @@ [alembic] # template used to generate migration files -# file_template = %%(rev)s_%%(slug)s +file_template = %%(year)d_%%(month).2d%%(day).2d%%(hour).2d_%%(rev)s_%%(slug)s # set to 'true' to run the environment during # the 'revision' command, regardless of autogenerate