# fluent-cart/1.6.4/database/Migrations/SubscriptionMetaMigrator.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 25 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/database/Migrations/SubscriptionMetaMigrator.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/database/Migrations/SubscriptionMetaMigrator.php
- Modified: 2025-11-20T13:11:16+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/fluent-cart/1.6.4/code/database/Migrations/SubscriptionMetaMigrator.php#L10-L20`.

```php
<?php

namespace FluentCart\Database\Migrations;

use FluentCart\Framework\Database\Schema;

class SubscriptionMetaMigrator extends Migrator
{

    public static string $tableName = "fct_subscription_meta";

    public static function getSqlSchema(): string
    {
        $indexPrefix = static::getDbPrefix() . 'fct_sm_';
        return "`id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
                `subscription_id` BIGINT UNSIGNED NULL DEFAULT NULL,
                `meta_key` VARCHAR(192) NULL DEFAULT NULL,
                `meta_value` LONGTEXT NULL DEFAULT NULL,
                `created_at` DATETIME NULL,
                `updated_at` DATETIME NULL,
                 INDEX `{$indexPrefix}_subs_id_key` (`subscription_id` ASC),
                 INDEX `{$indexPrefix}_meta_key` (`meta_key` ASC)";
    }
}

```
