62 Commits

Author SHA1 Message Date
bb2e19faa5 ActiveRecord::setOldAttribute() bugfix 2013-06-22 21:41:11 +04:00
8de3ffabfe ActiveRecord::setAttribute() bugfix 2013-06-22 18:12:51 +04:00
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
826c83c301 ActiveRecord::getNamespacedClass() correct PHP 5.3 code 2013-06-19 15:28:47 +04:00
732e438473 Fixed typo in the \yii\db\ActiveRecord::isOperationAtomic() method. 2013-06-18 23:02:21 +06:00
03e07f4340 cleaned up "use" statements. 2013-06-14 22:42:55 -04:00
4a0d2863f6 Fixes issue #421: yii\db\Schema:refresh() does not clear all cache 2013-06-12 21:59:30 -04:00
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
1df859cfa1 typo: primarykey -> primaryKey 2013-06-10 23:17:41 +02:00
9268e7d3ac message fix 2013-06-10 20:34:18 +06:00
2c02bc918d migrate command, primary key 2013-06-10 20:30:31 +06:00
4efeedd314 Minor coding style fix. 2013-06-09 17:46:41 -04:00
44f78f04df Merge pull request #519 from gevik/issue-466
Issue 466 (add/drop PrimaryKeys)
2013-06-09 14:41:08 -07:00
c338d4b76b Updated code styling and added braces. 2013-06-09 23:23:51 +02:00
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
864bf93679 coding style fix. 2013-06-09 09:41:32 -03:00
a977d8208e Replaced dropConstraint with dropPrimarykey method. 2013-06-09 14:10:45 +02:00
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
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
6fd74f5c27 Updated code style. braces on the same line for control statements. 2013-06-08 23:47:24 +02:00
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
cf1e12ad11 Fixes issue #514. 2013-06-08 12:37:39 -04:00
51972f2557 Merge pull request #505 from gevik/pgsql-driver
Pgsql driver implementation (update 4)
2013-06-07 14:13:39 -07:00
d07fd39f7e Removed false exception catching. 2013-06-07 22:54:04 +02:00
879b494acb Removed custom pgsql PDO and added defaultSchema as public property. 2013-06-07 21:28:58 +02:00
7a7d2a9c06 CS fixes. 2013-06-07 22:41:11 +06:00
9982d93369 Removed commented and unused pgsql datatype mappings. 2013-06-06 21:14:24 +02:00
e505566446 Refactored types to be compatible with 1.1 2013-06-06 19:51:22 +02:00
5a587d16f0 Fixed several formatting issues.
Refactored == null to is_null == '' to empty(...)
2013-06-06 16:29:17 +02:00
70e973129d Added foreign keys and cleanup internal pg types 2013-06-06 11:29:28 +02:00
3d79d992c4 Merge remote branch 'upstream/master' into pgsql-driver 2013-06-05 11:35:38 +02:00
9d6f11d5d5 new way of detecting if table exists. 2013-06-04 19:34:51 -04:00
2376730452 better check of existence of tables. 2013-06-04 18:11:50 -04:00
3680a4781d removed unneccessary brackets 2013-06-03 08:28:14 +02:00
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
af68ee9d27 Sqlite unit test for abstract db types 2013-06-03 00:24:39 +02:00
7117a6752b Added phpdoc about precision constraints for abstract db types 2013-06-02 22:58:42 +02:00
5c56c0fc02 Better flexibility for abstract db types
Feature was requested in yiisoft/yii#765
2013-06-02 16:05:11 +02:00
5a380360c7 Added table based sequence. 2013-06-01 12:37:30 +02:00
cbde22af55 Savepoint WIP QueryBuilder! 2013-06-01 12:36:55 +02:00
04ebd12277 Added last insert value to pgsql PDO 2013-06-01 12:36:19 +02:00
97270a389a Savepoint, implementing fkeys. 2013-05-31 14:25:56 +02:00
103621ad05 Savepoint: WIP implementing columns 2013-05-30 16:53:57 +02:00
94b2d17031 Fixes issue #460 2013-05-30 07:35:03 -04:00
66e698673d Fixes issue #457: incorrect HTTPS detection. 2013-05-29 21:53:25 -04:00
f05f85fcfe Removed Connection::__sleep. 2013-05-29 20:12:24 -04:00
4602b575ad Save point: WIP implementing db schema functionality. 2013-05-29 17:44:53 +02:00
c30eae62d2 Added initial unit testing files for the pgsql driver. 2013-05-29 00:01:02 +02:00
0a5b7a5960 docs: Be explicitly clear about ActiveRecord::create() 2013-05-27 23:51:01 +02:00