neverstew avatar
migrate
@neverstew
Script
Val Town Migrations By calling this val, you can easily handle migrations in your Val Town Turso Database. Getting started Make sure you have your Val Town API Token saved in your secrets. See more about authentication to understand how to generate a token. Make sure you've set up your turso database 👆Fork this val How it works Each time the val is run, a new migration will be created and tracked in your database in the migrations table. There will be one migration per val, per version. You can do anything you want in the function passed to migrate ; create or alter tables, populate data... whatever! Migrating backwards Vals don't have the concept of decreasing versions and neither does this migration tool. Made a mistake? Write a new version of your val to fix it!
pomdtr avatar
getValVersion
@pomdtr
Script
Forked from neverstew/getValVersion
neverstew avatar
getValVersion
@neverstew
Script
GET /v1/vals/{val_id}/versions/{version} Returns information about a specific version of a val. To access private vals this requires a secret called valtownToken, set to your API Token. See more about authentication to understand how to generate a token.
pomdtr avatar
coralLungfish
@pomdtr
Script
Forked from neverstew/getValVersion
1
Next
October 23, 2023