Documentation

DbCmsTimestampFix extends Migration
in package

This migration addresses a MySQL specific issue around STRICT MODE.

In past versions, Laravel would give timestamps a bad default value of "0" considered invalid by MySQL. Strict mode is disabled and the the timestamps are patched up. Credit for this work: Dave Shoreman.

Table of Contents

$withinTransaction  : bool
Enables, if supported, wrapping the migration within a transaction.
$connection  : string
The name of the database connection to use.
down()  : mixed
getConnection()  : string
Get the migration connection name.
up()  : mixed

Properties

$withinTransaction

Enables, if supported, wrapping the migration within a transaction.

public bool $withinTransaction = true

$connection

The name of the database connection to use.

protected string $connection

Methods

getConnection()

Get the migration connection name.

public getConnection() : string
Return values
string

Search results