Completed
Pull Request — master (#32)
by
unknown
18:58 queued 07:37
created

Sqlsrv   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 1
c 3
b 1
f 0
lcom 0
cbo 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A dropAllTables() 0 5 1
1
<?php
2
3
namespace Spatie\MigrateFresh\TableDroppers;
4
5
use DB;
6
7
class Sqlsrv implements TableDropper
8
{
9
    public function dropAllTables()
10
    {
11
        DB::unprepared(file_get_contents(dirname(__DIR__).'/Scripts/SqlSrvDropConstraints.sql'));
12
        DB::unprepared("exec sp_MSforeachtable 'DROP TABLE ?'");
13
    }
14
}
15