Update: 2026-05-08 05:09:43
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
-- SMS Bank Integration Tables
|
||||
-- Run this migration on your production database
|
||||
|
||||
CREATE TABLE IF NOT EXISTS raw_sms_log (
|
||||
id VARCHAR(36) PRIMARY KEY,
|
||||
@@ -16,6 +15,7 @@ CREATE TABLE IF NOT EXISTS raw_sms_log (
|
||||
INDEX idx_sms_date (received_at)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
-- Add sms_log_id to payment_requests if not exists
|
||||
ALTER TABLE payment_requests ADD COLUMN IF NOT EXISTS sms_log_id VARCHAR(36) DEFAULT NULL;
|
||||
ALTER TABLE payment_requests ADD COLUMN IF NOT EXISTS confirmed_at DATETIME DEFAULT NULL;
|
||||
-- Add columns to payment_requests
|
||||
-- Run these one at a time. If column already exists, just skip the error.
|
||||
ALTER TABLE payment_requests ADD COLUMN sms_log_id VARCHAR(36) DEFAULT NULL;
|
||||
ALTER TABLE payment_requests ADD COLUMN confirmed_at DATETIME DEFAULT NULL;
|
||||
|
||||
Reference in New Issue
Block a user