https://serverless-stack.com/ logo
#help
Title
# help
n

Noah D

02/23/2022, 11:43 AM
Hey there does anyone know how to run the
down
part of a migration using the new sst RDS construct? Can run
up
easily through sst console, but doesn't seem to be an easy way to clear changes if for example I need to change something while in development
t

thdxr

02/23/2022, 11:43 AM
Click on the previous migration
n

Noah D

02/23/2022, 11:46 AM
Ahh good to know 🎉, do you know if there is any caching involved in how migrations are applied? Seems when i run
up
again i get the same as previous migration without new changes
Just to share some findings, if I restart by running
sst start
again, the new migration applies correctly. But if i try to run the
down
migration followed by an
up
migration which has changed in the same session, no changes are observed. I suspect this is some caching within sst, not a huge issue since if all im changing is migrations
sst start
is pretty quick, but thought i would let you know 👍
t

thdxr

02/23/2022, 1:46 PM
hm this is something we explicitly fixed by adding a
?bust=
+ new Date() to the dynamic
import
Let me see if I broke something in the last update
eh looks like the busting doesn't work for the windows fix we did
I just pushed a fix in 65.6 that addresses this
n

Noah D

02/23/2022, 9:44 PM
Wow awesome, I will check out now!
Can confirm is working as expected
t

thdxr

02/23/2022, 10:43 PM
sweet