feat(FIX-158): completed feature
This commit is contained in:
@@ -42,13 +42,9 @@ export const up = (pgm) => {
|
||||
updated_at: { type: 'timestamptz', notNull: true, default: pgm.func('now()') },
|
||||
},
|
||||
{
|
||||
// Inline CHECK constraints.
|
||||
// Inline CHECK constraint.
|
||||
constraints: {
|
||||
check: {
|
||||
nonzero_amount: 'amount_cents != 0',
|
||||
eur_only: "currency = 'EUR'",
|
||||
valid_status: "status IN ('payment', 'refund', 'partial_refund')",
|
||||
},
|
||||
check: 'amount_cents != 0',
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user