This commit is contained in:
2026-03-31 00:30:50 +02:00
parent 5435209b08
commit af48e84449
30 changed files with 2706 additions and 111 deletions

View File

@@ -6,8 +6,8 @@
-- =============================================================
CREATE TABLE IF NOT EXISTS order_payments (
id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
order_id BIGINT UNSIGNED NOT NULL,
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
order_id INT UNSIGNED NOT NULL,
source_payment_id VARCHAR(64) NULL,
external_payment_id VARCHAR(64) NULL,
payment_type_id VARCHAR(64) NOT NULL,

View File

@@ -0,0 +1,9 @@
INSERT INTO cron_schedules (job_type, interval_seconds, priority, max_attempts, payload, enabled, last_run_at, next_run_at, created_at, updated_at)
VALUES ('order_status_aged', 3600, 50, 1, JSON_OBJECT(), 1, NULL, NOW(), NOW(), NOW())
ON DUPLICATE KEY UPDATE
interval_seconds = VALUES(interval_seconds),
priority = VALUES(priority),
max_attempts = VALUES(max_attempts),
payload = VALUES(payload),
enabled = VALUES(enabled),
updated_at = VALUES(updated_at);