One way to run migrations in Val Town is to write a single val and keep updating it with each migration. The version history of that val can act as a log of schema changes.
Let’s look at an example…
In our first migration, we create a users table:
Later, we realize we also want to store names. We can update the same val to alter the table: