hasTable(self::SUBSCRIPTIONS_TABLE)) { $table = $schema->createTable(self::SUBSCRIPTIONS_TABLE); $table->addColumn('id', Types::INTEGER, [ 'autoincrement' => true, 'notnull' => true, ]); $table->addColumn('user_id', Types::STRING, [ 'notnull' => true, 'length' => 200, ]); $table->addColumn('collection_name', Types::STRING, [ 'notnull' => true, 'length' => 100, ]); $table->addColumn('data', Types::TEXT, [ 'notnull' => true, ]); $table->addColumn('creation_timestamp', Types::BIGINT, [ 'notnull' => true, ]); $table->addColumn('expiration_timestamp', Types::BIGINT, [ 'notnull' => true, ]); $table->setPrimaryKey(['id']); } return $schema; } }