Completed
Pull Request — master (#13)
by Michael
01:53
created

Blueprint::efficientUuid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Dyrynda\Database;
4
5
use Illuminate\Database\Schema\Blueprint as BaseBlueprint;
6
7
class Blueprint extends BaseBlueprint
8
{
9
    /**
10
     * Create a new uuid column on the table, of type binary(16)
11
     *
12
     * @link  https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/ Store UUID in an optimized way
13
     *
14
     * @param  string  $column
15
     *
16
     * @return \Illuminate\Support\Fluent
17
     */
18 1
    public function efficientUuid($column)
19
    {
20 1
        return $this->addColumn('efficientUuid', $column);
21
    }
22
}
23