We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c48bce3 commit c48e84bCopy full SHA for c48e84b
includes/class-paystack-forms-activator.php
@@ -74,5 +74,13 @@ public static function activate()
74
if (empty($row1)) {
75
$wpdb->query("ALTER TABLE `" . $table_name . "` ADD `txn_code_2` VARCHAR(255) DEFAULT '' NULL AFTER `txn_code`;");
76
}
77
+
78
+ $row1 = $wpdb->get_results(
79
+ "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS
80
+ WHERE table_name = '" . $table_name . "' AND column_name = 'paid_at'"
81
+ );
82
+ if (empty($row1)) {
83
+ $wpdb->query("ALTER TABLE `" . $table_name . "` ADD `paid_at` timestamp AFTER `created_at`;");
84
+ }
85
86
0 commit comments