-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrey Helldar
authored
Nov 20, 2021
1 parent
4b9475b
commit 9d63ddf
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "dragon-code/contracts" project. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author Andrey Helldar <[email protected]> | ||
* | ||
* @copyright 2021 Andrey Helldar | ||
* | ||
* @license MIT | ||
* | ||
* @see https://github.com/TheDragonCode/contracts | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DragonCode\Contracts\MigrateDB; | ||
|
||
use Illuminate\Database\Connection; | ||
use Illuminate\Database\Schema\Builder as SchemaBuilder; | ||
|
||
interface Builder | ||
{ | ||
public function __construct(Connection $connection); | ||
|
||
/** | ||
* @return \Illuminate\Database\Schema\Builder|\Illuminate\Database\Schema\MySqlBuilder|\Illuminate\Database\Schema\PostgresBuilder | ||
*/ | ||
public function schema(): SchemaBuilder; | ||
|
||
public function getPrimaryKey(string $table): string; | ||
|
||
public function getAllTables(): array; | ||
|
||
public function dropAllTables(): void; | ||
|
||
public function disableForeign(): void; | ||
|
||
public function enableForeign(): void; | ||
} |