postgresql/docker-entrypoint-initdb.d/01_luticate2_utils.sql → postgresql/docker-entrypoint-initdb.d/0.1.0_01_luticate2_utils.sqlVoir le fichier
postgresql/docker-entrypoint-initdb.d/02_webtest.sql → postgresql/docker-entrypoint-initdb.d/0.1.0_02_webtest.sqlVoir le fichier
+ 6- 0
postgresql/docker-entrypoint-initdb.d/README.mdVoir le fichier
@@ -0,0 +1,6 @@
1
+The files in this folder will be copied in the postgres container and will be executed only on the first run.
2
+
3
+They MUST be named as `version_number_humanReadbleName.[sql|sql.gz|sh]` where:
4
+- version is `x.y.z`. Files are executed in versions order: 0.1.0 < 0.10.0 < 0.10.1 < 1.0.0
5
+- number is a number. Files are executed in their ASCII order, which means `0.1.0_1_my_first_files.sql` will be executed after `0.1.0_10_my_second_file.sh`. Use leading zeros to fix it, eg: `0.0.1_01_my_first_file.sql`
6
+- humanReadableName is pretty much what you want to describe this file