Activate pgcrypto extension for digest() function in database initialization and migration scripts
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
// Aktiviere die pgcrypto Erweiterung, die die digest() Funktion bereitstellt
|
||||
await queryInterface.sequelize.query(`
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto;
|
||||
`);
|
||||
|
||||
await queryInterface.sequelize.query(`
|
||||
CREATE OR REPLACE FUNCTION community.update_hashed_id() RETURNS TRIGGER AS $$
|
||||
BEGIN
|
||||
|
||||
Reference in New Issue
Block a user