Ilya Antipenko
7fd68199e5
Fix SORT_DESC comment in Query.php
2013-07-29 17:40:58 +03:00
Qiang Xue
1f5d77790f
Fixed test breaks.
2013-07-22 10:54:43 -04:00
Qiang Xue
20bde29f58
Added typecasting for SQL insertion and update.
2013-07-22 10:47:22 -04:00
Qiang Xue
a4239efa7c
Fixes #637 .
2013-07-18 08:05:09 -04:00
Qiang Xue
dc2843a2d7
Fixes #622 .
2013-07-14 19:03:43 -04:00
Qiang Xue
0cbb05d7a2
Added Query::indexBy
2013-07-11 10:04:54 -04:00
Qiang Xue
cace50cf3b
use raw SQL for profiling.
2013-07-10 11:01:14 -04:00
Qiang Xue
ee994efdf0
polishing debugger.
2013-07-09 12:33:14 -04:00
Qiang Xue
f03cdf0a47
renamed Command::queryRow() to queryOne().
2013-07-09 08:01:10 -04:00
Qiang Xue
c4a57a9f6c
Refactored Query and ActiveQuery.
...
Finished ActiveDataProvider.
2013-07-09 07:59:08 -04:00
Qiang Xue
aa568aacb5
Added support for using callables as "ActiveQuery::indexBy".
2013-07-08 21:25:00 -04:00
Qiang Xue
7fa240be65
initial implementation of Yii debugger.
2013-07-07 20:29:19 -04:00
Alexander Kochetov
bb2e19faa5
ActiveRecord::setOldAttribute() bugfix
2013-06-22 21:41:11 +04:00
Alexander Kochetov
8de3ffabfe
ActiveRecord::setAttribute() bugfix
2013-06-22 18:12:51 +04:00
Qiang Xue
c210de9d71
Merge pull request #556 from creocoder/php5.3-way-to-get-namespace
...
Model::formName() and ActiveRecord::getNamespacedClass() PHP 5.3 way
2013-06-19 05:13:52 -07:00
Alexander Kochetov
826c83c301
ActiveRecord::getNamespacedClass() correct PHP 5.3 code
2013-06-19 15:28:47 +04:00
resurtm
732e438473
Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic() method.
2013-06-18 23:02:21 +06:00
Qiang Xue
03e07f4340
cleaned up "use" statements.
2013-06-14 22:42:55 -04:00
Qiang Xue
4a0d2863f6
Fixes issue #421 : yii\db\Schema:refresh() does not clear all cache
2013-06-12 21:59:30 -04:00
Alexander Makarov
cc0fe1b02c
code style fixes
2013-06-13 02:16:48 +04:00
gsd
663fe63911
Update Schema.php
2013-06-11 15:38:06 +06:00
Carsten Brandt
1df859cfa1
typo: primarykey -> primaryKey
2013-06-10 23:17:41 +02:00
sergey Gonimar
9268e7d3ac
message fix
2013-06-10 20:34:18 +06:00
sergey Gonimar
2c02bc918d
migrate command, primary key
2013-06-10 20:30:31 +06:00
Qiang Xue
4efeedd314
Minor coding style fix.
2013-06-09 17:46:41 -04:00
Qiang Xue
44f78f04df
Merge pull request #519 from gevik/issue-466
...
Issue 466 (add/drop PrimaryKeys)
2013-06-09 14:41:08 -07:00
gevik
c338d4b76b
Updated code styling and added braces.
2013-06-09 23:23:51 +02:00
gevik
f667b5785b
- Added drop/add primary key methods to Command.php
...
- Added drop/add primary key methods to QueryBuilder.php
- Added mysql specific dropPrimarykey method
- Added sqlite specific dropPrimarykey and addPrimaryKey methods
- Added uint testing for dropPrimarykey and addPrimaryKey methods
- Corrected postgresql column types, by adding length and precision
2013-06-09 18:27:09 +02:00
Qiang Xue
864bf93679
coding style fix.
2013-06-09 09:41:32 -03:00
gevik
a977d8208e
Replaced dropConstraint with dropPrimarykey method.
2013-06-09 14:10:45 +02:00
gevik
3796db7d00
- Ported addPrimaryKey and created dropConstraint.
...
- The dropConstraint method can be used both for dropPrimaryKey and dropForeignKey
2013-06-09 11:00:15 +02:00
gevik
ec9dab11fa
[1] Redone missing code.
...
[2] Added empty line at the end of file
[3] Removed exception.
2013-06-09 00:04:37 +02:00
gevik
6fd74f5c27
Updated code style. braces on the same line for control statements.
2013-06-08 23:47:24 +02:00
gevik
19793f7af0
Removed unused columsn from find constraint sql. Fixed typo. Added extra schema check for when a foreign table is not in the same schema. Updated indentation to conform to other classes.
2013-06-08 21:51:15 +02:00
Qiang Xue
cf1e12ad11
Fixes issue #514 .
2013-06-08 12:37:39 -04:00
Qiang Xue
51972f2557
Merge pull request #505 from gevik/pgsql-driver
...
Pgsql driver implementation (update 4)
2013-06-07 14:13:39 -07:00
gevik
d07fd39f7e
Removed false exception catching.
2013-06-07 22:54:04 +02:00
Gevik Babakhani
879b494acb
Removed custom pgsql PDO and added defaultSchema as public property.
2013-06-07 21:28:58 +02:00
resurtm
7a7d2a9c06
CS fixes.
2013-06-07 22:41:11 +06:00
Gevik Babakhani
9982d93369
Removed commented and unused pgsql datatype mappings.
2013-06-06 21:14:24 +02:00
Gevik Babakhani
e505566446
Refactored types to be compatible with 1.1
2013-06-06 19:51:22 +02:00
Gevik Babakhani
5a587d16f0
Fixed several formatting issues.
...
Refactored == null to is_null == '' to empty(...)
2013-06-06 16:29:17 +02:00
Gevik Babakhani
70e973129d
Added foreign keys and cleanup internal pg types
2013-06-06 11:29:28 +02:00
Gevik Babakhani
3d79d992c4
Merge remote branch 'upstream/master' into pgsql-driver
2013-06-05 11:35:38 +02:00
Qiang Xue
9d6f11d5d5
new way of detecting if table exists.
2013-06-04 19:34:51 -04:00
Qiang Xue
2376730452
better check of existence of tables.
2013-06-04 18:11:50 -04:00
Carsten Brandt
3680a4781d
removed unneccessary brackets
2013-06-03 08:28:14 +02:00
Carsten Brandt
9b6df54c7d
Adjusted type map in MSSQL Querybuilder
...
MSSQL seems to support limits for decimal type, so we add a default
limit.
2013-06-03 00:28:32 +02:00
Carsten Brandt
af68ee9d27
Sqlite unit test for abstract db types
2013-06-03 00:24:39 +02:00
Carsten Brandt
7117a6752b
Added phpdoc about precision constraints for abstract db types
2013-06-02 22:58:42 +02:00