Completed
Pull Request — master (#32)
by
unknown
08:10
created

Sqlsrv   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A dropAllTables() 0 7 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
12
        DB::unprepared(file_get_contents(dirname(__DIR__) . '/Scripts/SqlSrvDropConstraints.sql'));
13
        DB::unprepared("exec sp_MSforeachtable 'DROP TABLE ?'");
14
15
    }
16
}
17