-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
5 changed files
with
69 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
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Mysql; | ||
|
||
/** | ||
* Defines the available index methods for {@see DDLQueryBuilder::createIndex()} method. | ||
*/ | ||
final class IndexMethod | ||
{ | ||
/** | ||
* Define the method of the index as `BTREE`. | ||
*/ | ||
public const BTREE = 'BTREE'; | ||
/** | ||
* Define the method of the index as `HASH`. | ||
*/ | ||
public const HASH = 'HASH'; | ||
} |
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,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Mysql; | ||
|
||
/** | ||
* Defines the available index types for {@see DDLQueryBuilder::createIndex()} method. | ||
*/ | ||
final class IndexType | ||
{ | ||
/** | ||
* Define the type of the index as `UNIQUE`. | ||
*/ | ||
public const UNIQUE = 'UNIQUE'; | ||
/** | ||
* Define the type of the index as `FULLTEXT`. | ||
*/ | ||
public const FULLTEXT = 'FULLTEXT'; | ||
/** | ||
* Define the type of the index as `SPATIAL`. | ||
*/ | ||
public const SPATIAL = 'SPATIAL'; | ||
} |
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
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