text clean up
This commit is contained in:
@@ -10,13 +10,9 @@ module.exports = {
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
// Note: PostgreSQL does not support removing values from ENUMs directly.
|
||||
// The 'requires_action' value will remain in the enum but can be unused.
|
||||
// To fully remove it would require recreating the enum and column,
|
||||
// which is complex and risky for production data.
|
||||
console.log(
|
||||
"Note: PostgreSQL does not support removing ENUM values. " +
|
||||
"'requires_action' will remain in the enum but will not be used."
|
||||
"'requires_action' will remain in the enum but will not be used.",
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -9,10 +9,8 @@ module.exports = {
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
// Note: PostgreSQL doesn't support removing enum values directly
|
||||
// This would require recreating the enum type
|
||||
console.log(
|
||||
"Cannot remove enum value - manual intervention required if rollback needed"
|
||||
"Cannot remove enum value - manual intervention required if rollback needed",
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
process.env.NODE_ENV = 'test';
|
||||
process.env.JWT_SECRET = 'test-secret';
|
||||
process.env.DATABASE_URL = 'postgresql://test';
|
||||
process.env.GOOGLE_MAPS_API_KEY = 'test-key';
|
||||
process.env.STRIPE_SECRET_KEY = 'sk_test_key';
|
||||
process.env.CSRF_SECRET = 'test-csrf-secret-that-is-at-least-32-chars-long';
|
||||
process.env.NODE_ENV = "test";
|
||||
process.env.JWT_SECRET = "test-secret";
|
||||
process.env.DATABASE_URL = "db://test";
|
||||
process.env.GOOGLE_MAPS_API_KEY = "test-key";
|
||||
process.env.STRIPE_SECRET_KEY = "sk_test_key";
|
||||
process.env.CSRF_SECRET = "test-csrf-secret-that-is-at-least-32-chars-long";
|
||||
|
||||
// Silence console
|
||||
global.console = {
|
||||
...console,
|
||||
log: jest.fn(),
|
||||
error: jest.fn(),
|
||||
warn: jest.fn()
|
||||
warn: jest.fn(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user