Skip to content

Commit

Permalink
correct migration order
Browse files Browse the repository at this point in the history
  • Loading branch information
aerlaut committed Jul 12, 2022
1 parent 66f5ae9 commit e30e6bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ exports.up = async (knex) => {
throw new Error('Environment variables AWS_REGION and AWS_ACCOUNT_ID are required');
}

await knex.raw(createDeleteSampleFileTriggerFunc(process.env.NODE_ENV));

await knex.raw(`
GRANT USAGE ON SCHEMA aws_lambda TO api_role;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA aws_lambda TO api_role;
`);

await knex.raw(createDeleteSampleFileTriggerFunc(process.env.NODE_ENV));
};

exports.down = async (knex) => {
Expand Down

0 comments on commit e30e6bf

Please sign in to comment.