fix: store refresh-at as string type, not date type, for sqlx autotyping
This commit is contained in:
parent
4a0ed99329
commit
6d6018aa32
2 changed files with 17 additions and 1 deletions
3
Taskfile
3
Taskfile
|
|
@ -12,7 +12,8 @@ refresh_sqlx_db() {
|
|||
rm -f some_user.db
|
||||
for migration in migrations/each_user/*.sql; do
|
||||
echo "Applying $migration..."
|
||||
sqlite3 some_user.db < "$migration"
|
||||
echo "BEGIN TRANSACTION;$(cat "$migration");COMMIT TRANSACTION;"\
|
||||
| sqlite3 some_user.db
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue