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

Sqlsrv::dropAllTables()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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