UserFrosting API

AddingForeignKeys extends Migration

Foreign Keys migration Adds missing foreign keys from 4.0.0 migrations Version 4.2.0.

Table of Contents

$tables array
$schema Builder
up() {@inheritdoc} mixed
down() {@inheritdoc} mixed
__construct() Create a new migration instance. mixed

Properties

$tables

protected array $tables = ['activities' => ['user_id' => ['id', 'users']], 'password_resets' => ['user_id' => ['id', 'users']], 'permission_roles' => ['permission_id' => ['id', 'permissions'], 'role_id' => ['id', 'roles']], 'persistences' => ['user_id' => ['id', 'users']], 'role_users' => ['user_id' => ['id', 'users'], 'role_id' => ['id', 'roles']], 'users' => ['group_id' => ['id', 'groups'], 'last_activity_id' => ['id', 'activities']], 'verifications' => ['user_id' => ['id', 'users']]]

Methods

__construct()

Create a new migration instance.

public __construct( [ $schema : Builder|null = null ] ) : mixed
Parameters
$schema : Builder|null = null
Return values
mixed

Search results