Run code on serverless delploy, liquibase

I want to version my database with liquibase and the node liquibase package. Is there a way to get serverless to run this code when I deploy?

1 Like

You could build a plugin but personally I would use a deploy script that includes sls deploy && liquibase update. This way the liquibase update will only run if the sls deploy succeeds.

Is there a “serverless way” of having schema versioning or otherwise having my schema in my git repo?

Here is an interesting opition (4 years ago) about it. I +1 to this question about the “serverless way to do the database migrations”