Completed
Pull Request — master (#32)
by
unknown
03:55
created

Sqlsrv   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

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
use Schema;
7
use stdClass;
8
9
class Sqlsrv implements TableDropper
10
{
11
    public function dropAllTables()
12
    {
13
14
    	DB::unprepared(file_get_contents(dirname(__DIR__) . '/Scripts/SqlSrvDropConstraints.sql'));
15
    	DB::unprepared("exec sp_MSforeachtable 'DROP TABLE ?'");
16
17
    }
18
}
19