template_sveltekit_mysql Svelte Themes

Template_sveltekit_mysql

Running dev

npm install

npm run dev -- --open

migrations

npx knex migrate:make _name_of_migration # e.g. npx knex migrate:make create_users

Note: you need to change the generated migration file from Knex generated CommonJS to ES6 module code.

exports.up = function (knex) {

// becomes:

export async function up(knex) {

//same with the down function


```bash

npx knex migrate:latest

rollback the last migration

npx knex migrate:rollback

Top categories

Loading Svelte Themes