sniper30_
sniper30_
DTDrizzle Team
Created by sniper30_ on 1/11/2024 in #help
migrate() function its no working on postgresjs.
What I'm trying to do is create a file migrate.ts with this code : import {migrate} from 'drizzle-orm/postgres-js/migrator'; import {db,client} from '.'; export const migration = async () => { console.log('starting migration'); await migrate(db,{migrationsFolder:"./supabase/migrations"}); await client.end(); console.log('migration ended'); } migration().catch(error => console.log(error)) the migration goes well but it does not apply the migration in the "./supabase/migrations"
3 replies