Spaces:
Running
Running
fix constraint in migration script
Browse files- migrations/version_0.sql +2 -2
migrations/version_0.sql
CHANGED
|
@@ -22,8 +22,8 @@ CREATE TABLE IF NOT EXISTS TRANSACTIONS (
|
|
| 22 |
merchant_address_latitude DECIMAL(9, 6),
|
| 23 |
merchant_address_longitude DECIMAL(9, 6),
|
| 24 |
is_fraud BOOLEAN,
|
| 25 |
-
-- Add unique constraint on
|
| 26 |
-
CONSTRAINT unique_transaction UNIQUE (transaction_number
|
| 27 |
);
|
| 28 |
|
| 29 |
-- Add index on transaction_number
|
|
|
|
| 22 |
merchant_address_latitude DECIMAL(9, 6),
|
| 23 |
merchant_address_longitude DECIMAL(9, 6),
|
| 24 |
is_fraud BOOLEAN,
|
| 25 |
+
-- Add unique constraint on transaction_number
|
| 26 |
+
CONSTRAINT unique_transaction UNIQUE (transaction_number)
|
| 27 |
);
|
| 28 |
|
| 29 |
-- Add index on transaction_number
|