Commit Graph

47 Commits

Author SHA1 Message Date
Carsten Brandt
731769241b release version 2.0.8 2016-04-28 16:50:20 +02:00
Chris Harris
a6afa6072c Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-02-24 04:07:21 -08:00
SilverFire - Dmitry Naumenko
2201bf14e2 Fixed parameters binding to the SQL query in yii\db\mysqlSchema::findConstraints()
Closes #10946
2016-02-24 08:31:24 +02:00
Chris Harris
96fa375b16 Refactored to a more functional way of accessing database connection 2016-02-21 05:05:54 -08:00
Chris Harris
f52f60db0f Renamed category constants 2016-02-21 02:06:41 -08:00
Chris Harris
51b99320bd Sqlite specific schema builder class actually gets loaded now 2016-02-20 06:53:31 -08:00
Chris Harris
eaeb926768 Adds char datatype to framework 2016-02-20 01:52:23 -08:00
Carsten Brandt
e43c41c9ea db layer phpdoc fixes 2016-02-07 16:33:26 +01:00
Hereward Mills
a4acd048bc Add @throws tags to PHPDocs. 2015-12-24 11:11:03 +00:00
SilverFire - Dmitry Naumenko
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
Alexander Makarov
e4f5b91f74 Fixed #6351 MySQL 5.1 compatibility 2015-11-20 02:26:15 +03:00
Steve Guns
d40435e931 Enhanced #6351 fix by reintroduced older (SQL CREATE) style FK detection for people still running MySQL servers where referential_constraints is not available 2015-10-27 17:44:16 +03:00
Alexander Makarov
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
jeicd
0407407b76 fix coding style to follow PSR-2 2015-10-05 13:58:47 +06:00
John Was
eb6935e4a8 add more conditions when reading mysql information_schema to speed it up 2015-10-01 12:20:19 +02:00
Jan Waś
191185f5e3 Fixes #6351: Find MySQL FK constraints from information_schema tables instead of SHOW CREATE TABLE to improve reliability 2015-09-29 13:47:20 +03:00
John Was
4f49feee8d fixes #7757: in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
2015-03-29 21:57:13 +02:00
Alexander Makarov
5870a74672 Added Schema::DOUBLE to represent ANSI SQL Double Precision 2015-02-25 16:01:37 +03:00
mcd.php
20774165bc Fixes #4644: Added \yii\db\Schema::createColumnSchema() to be able to customize column schema used 2014-08-12 00:01:27 +04:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Steve
47923cccbe Fix bug in yii\db\mysql\Schema
Schema name was not used in ’SHOW CREATE TABLE’  query

Fixed bug where schema name was not used in ’SHOW CREATE TABLE’ query in `yii\db\mysql\Schema`

close #4162
2014-07-02 12:35:46 +02:00
Carsten Brandt
5d0452b2ae rename ColumnSchema::typecast to phpTypecast 2014-06-27 02:12:59 +02:00
Carsten Brandt
8a70d9fbd1 rename column schema typecast method 2014-06-26 00:11:04 +02:00
Carsten Brandt
6a48f68955 split typecast method into two
one method for fetching data and one for sending to db.

fixes #2287
2014-06-26 00:00:37 +02:00
Carsten Brandt
29cacc8a05 added mysql blob and longblob to the list
issue #613
2014-06-25 04:20:37 +02:00
Carsten Brandt
651e6a3feb added support for BIT default values
fixes #422
2014-06-25 03:37:39 +02:00
Carsten Brandt
4f95fcd91f added unit tests for schema detection
fixed some issues with schema detection
2014-06-25 03:09:28 +02:00
Carsten Brandt
20483e25db added reference link to SQL error code
[ci skip]
2014-06-12 15:11:48 +02:00
Carsten Brandt
9430ccd095 more robust check for table not exists
should work on HHVM too
2014-06-12 14:46:13 +02:00
Qiang Xue
f5dbd9a084 Fixes #3564: Fixed the bug that primary key columns should not take default values from schema 2014-05-23 10:35:20 -04:00
Qiang Xue
453ed4d93a fixed #3268 2014-04-27 17:22:07 -04:00
Qiang Xue
9b71adb4fa Fixes #3268: Fixed the bug that the schema name in a table name was not respected by yii\db\mysql\Schema 2014-04-27 12:14:30 -04:00
Carsten Brandt
91965fd391 phpdoc formatting issues 2014-04-23 02:55:17 +02:00
Qiang Xue
02c3c37a00 Fixes #2986. 2014-04-05 11:55:26 -04:00
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
8ecceb395f Fixes #2210: Mysql driver will now treat tinyint(1) as integer instead of boolean 2014-01-29 13:54:17 -05:00
Qiang Xue
9b723baa76 Added TableSchema::fullName property 2014-01-16 15:51:14 -05:00
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Qiang Xue
4fdaab3560 updated file header. 2013-03-04 08:03:46 -05:00
Qiang Xue
abd3d827a2 refactoring. 2013-01-18 10:37:22 -05:00
Qiang Xue
7f6a5568b4 Cleaned up SQLite support. 2013-01-18 09:40:00 -05:00
Qiang Xue
6ed01e9645 DB cleanup. 2013-01-18 08:35:09 -05:00
Qiang Xue
6dd495b65f Added init and afterFind events to AR.
Implemented scope support.
2013-01-17 20:58:50 -05:00
Qiang Xue
ebecc09839 DB refactoring. 2013-01-17 16:15:12 -05:00
Qiang Xue
e150b7fae7 renamed Driver to Schema. 2013-01-15 20:16:27 -05:00