| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\PaymentGateways\PayPalCommerce\Migrations; |
| 4 |
|
| 5 |
use Give\Framework\Database\DB; |
| 6 |
use Give\Framework\Migrations\Contracts\Migration; |
| 7 |
|
| 8 |
/** |
| 9 |
* @since 2.19.7 |
| 10 |
*/ |
| 11 |
class RemoveLogWithCardInfo extends Migration |
| 12 |
{ |
| 13 |
/** |
| 14 |
* @inheritDoc |
| 15 |
*/ |
| 16 |
public function run() |
| 17 |
{ |
| 18 |
global $wpdb; |
| 19 |
|
| 20 |
DB::query( |
| 21 |
" |
| 22 |
DELETE FROM {$wpdb->prefix}give_log |
| 23 |
WHERE data like '%cardInfo%' |
| 24 |
" |
| 25 |
); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* @inerhitDoc |
| 30 |
*/ |
| 31 |
public static function id() |
| 32 |
{ |
| 33 |
return 'remove-log-with-card-info'; |
| 34 |
} |
| 35 |
|
| 36 |
/** |
| 37 |
* @inerhitDoc |
| 38 |
*/ |
| 39 |
public static function timestamp() |
| 40 |
{ |
| 41 |
return strtotime('2022-03-25'); |
| 42 |
} |
| 43 |
|
| 44 |
/** |
| 45 |
* @inerhitDoc |
| 46 |
*/ |
| 47 |
public static function title() |
| 48 |
{ |
| 49 |
return 'Remove Log With CardInfo'; |
| 50 |
} |
| 51 |
} |
| 52 |
|