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

Blueprint   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A efficientUuid() 0 4 1
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