# give/4.18.0/src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 52 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php
- Modified: 2022-04-04T23:40:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\PayPalCommerce\Migrations;

use Give\Framework\Database\DB;
use Give\Framework\Migrations\Contracts\Migration;

/**
 * @since 2.19.7
 */
class RemoveLogWithCardInfo extends Migration
{
    /**
     * @inheritDoc
     */
    public function run()
    {
        global $wpdb;

        DB::query(
            "
            DELETE FROM {$wpdb->prefix}give_log
            WHERE data like '%cardInfo%'
            "
        );
    }

    /**
     * @inerhitDoc
     */
    public static function id()
    {
        return 'remove-log-with-card-info';
    }

    /**
     * @inerhitDoc
     */
    public static function timestamp()
    {
        return strtotime('2022-03-25');
    }

    /**
     * @inerhitDoc
     */
    public static function title()
    {
        return 'Remove Log With CardInfo';
    }
}

```
