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

Sqlsrv::dropAllTables()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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