]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Clarify how script_location can be os agnostic
authorFederico Caselli <cfederico87@gmail.com>
Mon, 18 Mar 2024 21:29:01 +0000 (22:29 +0100)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 18 Mar 2024 21:29:37 +0000 (22:29 +0100)
Fixes: #1431
Change-Id: Iafe70621911614d197e5e5ecf74afecd6f4df10e

alembic/templates/async/alembic.ini.mako
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako

index 0e5f43fdefbf43aab57005b532381e50abcca2fc..3558295edc1aa58c134e1f1a7e673f08fafcd85e 100644 (file)
@@ -1,7 +1,8 @@
 # A generic, single database configuration.
 
 [alembic]
-# path to migration scripts
+# path to migration scripts.
+# Use forward slashes (/) also on windows to provide an os agnostic path
 script_location = ${script_location}
 
 # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
@@ -20,8 +21,7 @@ prepend_sys_path = .
 # leave blank for localtime
 # timezone =
 
-# max length of characters to apply to the
-# "slug" field
+# max length of characters to apply to the "slug" field
 # truncate_slug_length = 40
 
 # set to 'true' to run the environment during
index 29245dd3f5aef640935e62bb9dc305f0130c465b..b3fe053552e2ef93607fb487072b1afc3f047725 100644 (file)
@@ -2,6 +2,7 @@
 
 [alembic]
 # path to migration scripts
+# Use forward slashes (/) also on windows to provide an os agnostic path
 script_location = ${script_location}
 
 # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
@@ -22,8 +23,7 @@ prepend_sys_path = .
 # leave blank for localtime
 # timezone =
 
-# max length of characters to apply to the
-# "slug" field
+# max length of characters to apply to the "slug" field
 # truncate_slug_length = 40
 
 # set to 'true' to run the environment during
index c7fbe48228a4c0af4f121bf8cc984ea7f889af7c..6e90199994c81acfa825d5b93b0f26e112737129 100644 (file)
@@ -2,6 +2,7 @@
 
 [alembic]
 # path to migration scripts
+# Use forward slashes (/) also on windows to provide an os agnostic path
 script_location = ${script_location}
 
 # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
@@ -22,8 +23,7 @@ prepend_sys_path = .
 # leave blank for localtime
 # timezone =
 
-# max length of characters to apply to the
-# "slug" field
+# max length of characters to apply to the "slug" field
 # truncate_slug_length = 40
 
 # set to 'true' to run the environment during