class MigrationStubs

Collection of stubs for migration files.

Methods

static string
aclTableTemplate()

Template for acl table migration.

static string
emailAttachmentsTableTemplate()

Template for email_attachments table migration.

static string
migrationClass(string $fileName, string $tableName)

Generates a new Migration class for creating a new table.

static string
migrationTableTemplate()

Template for migrations table migration.

static string
migrationRenameClass(string $fileName, string $from, string $to)

Generates a new Migration class for renaming an existing table.

static string
migrationUpdateClass(string $fileName, string $tableName)

Generates a new Migration class for updating a table.

static string
notificationsTableTemplate()

Template for notifications table migration.

static string
profileImagesTableTemplate()

Template for profile_images table migration.

static string
queueTableTemplate()

Template for queue table migration.

static string
userSessionsTableTemplate()

Template for user_sessions table migration.

static string
usersTableTemplate()

Template for users table migration.

Details

at line 16
static string aclTableTemplate()

Template for acl table migration.

Return Value

string

The content for acl table migration.

at line 60
static string emailAttachmentsTableTemplate()

Template for email_attachments table migration.

Return Value

string

The content for email_attachments table migration.

at line 112
static string migrationClass(string $fileName, string $tableName)

Generates a new Migration class for creating a new table.

Parameters

string $fileName

The file name for the Migration class.

string $tableName

The name of the table for the migration.

Return Value

string

The contents of the new Migration class.

at line 154
static string migrationTableTemplate()

Template for migrations table migration.

Return Value

string

The content for migrations table migration.

at line 200
static string migrationRenameClass(string $fileName, string $from, string $to)

Generates a new Migration class for renaming an existing table.

Parameters

string $fileName

The file name for the Migration class.

string $from

The table's original name.

string $to

The new name for the table.

Return Value

string

The contents of the new Migration class.

at line 239
static string migrationUpdateClass(string $fileName, string $tableName)

Generates a new Migration class for updating a table.

Parameters

string $fileName

The file name for the Migration class.

string $tableName

The name of the table for the migration.

Return Value

string

The contents of the new Migration class.

at line 280
static string notificationsTableTemplate()

Template for notifications table migration.

Return Value

string

The content for notifications table migration.

at line 329
static string profileImagesTableTemplate()

Template for profile_images table migration.

Return Value

string

The content for profile_images table migration.

at line 376
static string queueTableTemplate()

Template for queue table migration.

Return Value

string

The content for queue table migration.

at line 426
static string userSessionsTableTemplate()

Template for user_sessions table migration.

Return Value

string

The content for user_sessions table migration.

at line 472
static string usersTableTemplate()

Template for users table migration.

Return Value

string

The content for users table migration.