Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Add BLOB type #30

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class Migration extends Expression
'text' => ['text'],
'array' => ['text'],
'object' => ['text'],
'blob' => ['blob'],
];

/** @var array use this array in extended classes to overwrite or extend values of default mapping */
Expand All @@ -66,6 +67,7 @@ class Migration extends Expression
'datetime' => ['datetime'],
'timestamp' => ['datetime'],
'text' => ['text'],
'blob' => ['blob'],
];

/** @var array use this array in extended classes to overwrite or extend values of default mapping */
Expand Down
3 changes: 2 additions & 1 deletion src/Migration/MySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ class MySQL extends \atk4\schema\Migration
'text' => ['longtext'],
'array' => ['longtext'],
'object' => ['longtext'],
'blob' => ['longblob'],
];

/** @var array use this array in extended classes to overwrite or extend values of default mapping */
public $mapToAgile = [
0 => ['string'],
'longtext' => ['text'],
'longblob' => ['text'],
'longblob' => ['blob'],
];

/**
Expand Down