Skip to content

Commit

Permalink
fix: alterado valor defaul do ID para utilizar UUID do Postgres nas t…
Browse files Browse the repository at this point in the history
…abelas de configuração da api e mensagens da api.
  • Loading branch information
ldurans committed Nov 8, 2022
1 parent bf81d32 commit f7ae28e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import { QueryInterface } from "sequelize";
module.exports = {
up: (queryInterface: QueryInterface) => {
return Promise.all([
queryInterface.sequelize
.query
queryInterface.sequelize.query(
"select gen_random_uuid()"
// 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
()
)
]);
},

down: (queryInterface: QueryInterface) => {
return Promise.all([
queryInterface.sequelize
.query
queryInterface.sequelize.query(
"select gen_random_uuid()"
// 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
()
)
]);
}
};

0 comments on commit f7ae28e

Please sign in to comment.