# storeengine/2.2.0/includes/database/create-log.php

StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates &amp; More, version 2.2.0. 27 lines.

- Page: https://pluginprobe.com/plugins/storeengine/2.2.0/code/includes/database/create-log.php
- Raw: https://pluginprobe.com/plugins/storeengine/2.2.0/raw/includes/database/create-log.php
- Modified: 2026-04-20T13:58:18+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/storeengine/2.2.0/code/includes/database/create-log.php#L10-L20`.

```php
<?php
namespace StoreEngine\Database;

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

class CreateLog {
    public static function up( $prefix, $charset_collate ) {
        $table_name = $prefix . 'storeengine_logs';
        $sql = "CREATE TABLE IF NOT EXISTS {$table_name} (
            `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
            `date` datetime NOT NULL,
            `module` varchar(100) NOT NULL,
            `title` varchar(255) NOT NULL,
            `status` varchar(20) NOT NULL,
            `content` longtext NOT NULL,
            PRIMARY KEY (`id`),
            KEY `date` (`date`),
            KEY `status` (`status`),
            KEY `module` (`module`)
        ) $charset_collate;";

        dbDelta( $sql );
    }
}

```
