File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -289,15 +289,13 @@ migrationDir="$(realpath "$(dirname "$(realpath "$0")")/../migrations")"
289289
290290echo " Running migrations from: ${migrationDir} "
291291
292- migrationFile=$( ls " ${migrationDir} " | sort -r | head -n 1)
293-
294- echo " Found migration file: ${migrationFile} "
295-
296- sh " ${migrationDir} /${migrationFile} "
297-
298-
292+ if [ -d " ${migrationDir} " ] && find " ${migrationDir} " -type f | grep -q . ; then
293+ migrationFile=$( ls " ${migrationDir} " | sort -r | head -n 1)
294+ echo " Found migration file: ${migrationFile} "
295+ sh " ${migrationDir} /${migrationFile} "
296+ else
297+ echo " No migration files found in ${migrationDir} . Skipping migrations."
299298fi
300-
301299# ------------------------#
302300# enable system services #
303301# ------------------------#
You can’t perform that action at this time.
0 commit comments