DbBackendTimestampFix
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.
- $backendTables : mixed
- $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
$backendTables
protected
mixed
$backendTables
= ['backend_users', 'backend_user_groups', 'backend_access_log']
$connection
The name of the database connection to use.
protected
string
$connection
Methods
down()
public
down() : mixed
Return values
mixed —getConnection()
Get the migration connection name.
public
getConnection() : string
Return values
string —up()
public
up() : mixed