Skip to content

Commit f9b2693

Browse files
fix: switched back to incremental database migrations
1 parent 2256ada commit f9b2693

5 files changed

+3
-2
lines changed

db/cli/create_migration.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
now=$(TZ=UTC date -R)
2-
unix_time=$(date +%s)
3-
echo '--Migration generated '$now > source/migrations/$unix_time-$1.sql
2+
count=$(ls source/migrations/ | wc -l)
3+
((count++))
4+
echo '--Migration generated '$now > source/migrations/$count-$1.sql

0 commit comments

Comments
 (0)