Skip to content

[v5] Can't change migration table location on MSSQL. It is always under master #3588

Answered by guntribam
guntribam asked this question in Help
Discussion options

You must be logged in to vote

you just need to specify you database

connection: {
        ...(Env.get("MSSQL_DOMAIN") && {type: "ntlm", domain: Env.get("MSSQL_DOMAIN")}),
        server: Env.get("MSSQL_SERVER") ,
        port: Env.get("MSSQL_PORT"),
        database: Env.get("MSSQL_APP_DB_NAME") ,  //this was missing, so it connected to MASTER all the time
        user: Env.get("MSSQL_APP_DB_USER"),
        password: Env.get("MSSQL_APP_DB_PASSWORD"),
        options: {
            ...(Env.get("MSSQL_INSTANCE") && {instanceName: Env.get("MSSQL_INSTANCE")}),        
            trustServerCertificate: true
        }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guntribam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant