drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

how do you get any infomation about migrations?

Open AndriiSherman opened this issue 2 years ago • 1 comments

Discussed in https://github.com/drizzle-team/drizzle-orm/discussions/285

Originally posted by toddgeist March 19, 2023 the migrate from "drizzle-orm/better-sqlite3/migrator" works, but there is no result. There also doesn't seem to be any way to see if there are migrations that need to be performed.

How can I log what the migrator just did? or get any info about migrations.

Thanks

Todd

AndriiSherman avatar Mar 29 '23 09:03 AndriiSherman

You can create your own logger. This is for postgres, but I assume it would be similar with sqlite.

Example code

Output:

image

danielres avatar Apr 25 '23 10:04 danielres