-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
14 changed files
with
113 additions
and
75 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
Upgrading Instructions for Yii Framework Database 3.0 | ||
===================================================== | ||
# Upgrading Instructions for Yii Database | ||
|
||
This file contains the upgrade notes for the database layer Yii 3.0. | ||
These notes highlight changes that could break your application when you upgrade Yii from one version to another. | ||
This file contains the upgrade notes for the Yii Database. | ||
These notes highlight changes that could break your application when you upgrade it from one version to another. | ||
Even though we try to ensure backwards compatibility (BC) as much as possible, sometimes | ||
it is not possible or very complicated to avoid it and still create a good solution to | ||
it isn't possible or very complicated to avoid it and still create a good solution to | ||
a problem. While upgrade to Yii 3.0 might require substantial changes to both your application and extensions, | ||
the changes are bearable and require "refactoring", not "rewrite". | ||
All the "Yes, it is" cool stuff and Yii soul are still in place. | ||
All the "Yes, it is" cool stuff, and Yii soul is still in place. | ||
|
||
Changes summary: | ||
* `Yiisoft\Db\Connection::$charset` has been removed. All support PDO classes allow you to specify the connection charset in the DSN. | ||
|
||
* `Yiisoft\Db\Connection::$charset` has been removed. All supported PDO classes allow you to specify the connection | ||
charset in the DSN. |
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
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,42 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Db\Command; | ||
|
||
/** | ||
* Types of data. | ||
* Usually used when binding parameters. | ||
*/ | ||
final class DataType | ||
{ | ||
/** | ||
* SQL `NULL` data type. | ||
*/ | ||
public const NULL = 0; | ||
|
||
/** | ||
* SQL `INTEGER` data type. | ||
*/ | ||
public const INTEGER = 1; | ||
|
||
/** | ||
* SQL `CHAR`, `VARCHAR`, or another string data type. | ||
*/ | ||
public const STRING = 2; | ||
|
||
/** | ||
* SQL large object data type. | ||
*/ | ||
public const LOB = 3; | ||
|
||
/** | ||
* Represents a recordset type. Not currently supported by any drivers. | ||
*/ | ||
public const STMT = 4; | ||
|
||
/** | ||
* Boolean data type. | ||
*/ | ||
public const BOOLEAN = 5; | ||
} |
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
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
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
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
Oops, something went wrong.