Shadowblade911 / MrLancer-v2

ISC License
0 stars 0 forks source link

knex migration does not create prompts table #6

Closed jcotton42 closed 2 years ago

jcotton42 commented 2 years ago

The initial migration does not await the createTable call for prompts causing it to never run. In addition it seems to be trying to add the guild ID column twice?

        table.string(DB_CONSTANTS.PROMPTS.GUILD_ID);
        table.string(DB_CONSTANTS.PROMPTS.GUILD_ID)
            .references(DB_CONSTANTS.GUILD_DB.GUILD_ID)
            .inTable(DB_CONSTANTS.GUILD_DB.TABLE).notNullable();

I fixed this in my fork by adding the await and removing the first GUILD_ID line. Unsure if that was the right way to do it.