added tahesab options

This commit is contained in:
2026-06-25 22:20:40 +03:30
parent 936cc88e53
commit e6e1ff0cc4
11 changed files with 411 additions and 144 deletions
+12
View File
@@ -0,0 +1,12 @@
-- Manual fix when php artisan migrate does not apply (e.g. baseline already registered).
-- Adds sync tracking columns to tahesab table.
ALTER TABLE `tahesab`
ADD COLUMN IF NOT EXISTS `sync_status` VARCHAR(20) NOT NULL DEFAULT 'pending' AFTER `type`,
ADD COLUMN IF NOT EXISTS `sync_log` TEXT NULL AFTER `sync_status`,
ADD COLUMN IF NOT EXISTS `withdraw_id` BIGINT UNSIGNED NULL AFTER `order_id`;
-- MySQL < 8.0.12 does not support IF NOT EXISTS on ADD COLUMN; use these instead if the above fails:
-- ALTER TABLE `tahesab` ADD COLUMN `sync_status` VARCHAR(20) NOT NULL DEFAULT 'pending' AFTER `type`;
-- ALTER TABLE `tahesab` ADD COLUMN `sync_log` TEXT NULL AFTER `sync_status`;
-- ALTER TABLE `tahesab` ADD COLUMN `withdraw_id` BIGINT UNSIGNED NULL AFTER `order_id`;