payment on hold
This commit is contained in:
7
migrations/add_expires_at_to_pending_orders.sql
Normal file
7
migrations/add_expires_at_to_pending_orders.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Add expires_at column to pending_orders table for 10-minute reservation timeout
|
||||
ALTER TABLE `pending_orders`
|
||||
ADD COLUMN `expires_at` datetime NOT NULL DEFAULT (DATE_ADD(NOW(), INTERVAL 10 MINUTE));
|
||||
|
||||
-- Add index on expires_at for efficient cleanup queries
|
||||
CREATE INDEX `idx_expires_at` ON `pending_orders` (`expires_at`);
|
||||
|
||||
Reference in New Issue
Block a user