Skip to content

Commit 61dc5a6

Browse files
Aniket BurmanAniket Burman
authored andcommitted
Removed the default in migration
1 parent 0590bd1 commit 61dc5a6

File tree

2 files changed

+1
-3
lines changed
  • crates/common_enums/src
  • v2_migrations/2025-04-08-101702_add_recovery_algorithm_column_in_business_profile

2 files changed

+1
-3
lines changed

crates/common_enums/src/enums.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ pub enum CardDiscovery {
213213
Clone,
214214
Copy,
215215
Debug,
216-
Default,
217216
Hash,
218217
Eq,
219218
PartialEq,
@@ -228,7 +227,6 @@ pub enum CardDiscovery {
228227
#[serde(rename_all = "snake_case")]
229228
#[strum(serialize_all = "snake_case")]
230229
pub enum RevenueRecoveryAlgorithmType {
231-
#[default]
232230
Monitoring,
233231
Smart,
234232
Cascading,

v2_migrations/2025-04-08-101702_add_recovery_algorithm_column_in_business_profile/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
CREATE TYPE "RevenueRecoveryAlgorithmType" AS ENUM ('monitoring', 'smart', 'cascading');
33

44
ALTER TABLE business_profile
5-
ADD COLUMN IF NOT EXISTS revenue_recovery_retry_algorithm_type "RevenueRecoveryAlgorithmType" DEFAULT 'monitoring',
5+
ADD COLUMN IF NOT EXISTS revenue_recovery_retry_algorithm_type "RevenueRecoveryAlgorithmType",
66
ADD COLUMN IF NOT EXISTS revenue_recovery_retry_algorithm_data JSONB;

0 commit comments

Comments
 (0)