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
Carsten Brandt
5c56c0fc02
Better flexibility for abstract db types
...
Feature was requested in yiisoft/yii#765
2013-06-02 16:05:11 +02:00
Gevik Babakhani
5a380360c7
Added table based sequence.
2013-06-01 12:37:30 +02:00
Gevik Babakhani
cbde22af55
Savepoint WIP QueryBuilder!
2013-06-01 12:36:55 +02:00
Gevik Babakhani
04ebd12277
Added last insert value to pgsql PDO
2013-06-01 12:36:19 +02:00
Gevik Babakhani
97270a389a
Savepoint, implementing fkeys.
2013-05-31 14:25:56 +02:00
Gevik Babakhani
103621ad05
Savepoint: WIP implementing columns
2013-05-30 16:53:57 +02:00
Qiang Xue
94b2d17031
Fixes issue #460
2013-05-30 07:35:03 -04:00
Qiang Xue
66e698673d
Fixes issue #457 : incorrect HTTPS detection.
2013-05-29 21:53:25 -04:00
Qiang Xue
f05f85fcfe
Removed Connection::__sleep.
2013-05-29 20:12:24 -04:00
Gevik Babakhani
4602b575ad
Save point: WIP implementing db schema functionality.
2013-05-29 17:44:53 +02:00
Gevik Babakhani
c30eae62d2
Added initial unit testing files for the pgsql driver.
2013-05-29 00:01:02 +02:00
Carsten Brandt
0a5b7a5960
docs: Be explicitly clear about ActiveRecord::create()
2013-05-27 23:51:01 +02:00
resurtm
cc5426e549
Removed unnecessary code from MSSQL schema.
2013-05-27 22:26:20 +06:00
Qiang Xue
f5d0bcbcfc
Refactored cache key generation.
2013-05-26 17:09:09 -04:00
Carsten Brandt
689080519e
Added support for previous exceptions
...
PHP supports exception stacks since 5.3 so we should use it.
Also Errorhandler is now able to display the stack: #297
2013-05-26 04:38:13 +02:00
resurtm
89e3077108
MSSQL column case consistency.
2013-05-24 00:06:40 +06:00
resurtm
d67416ab8b
MSSQL: select what is really needed from information_schema.columns, not just everything as it was before.
2013-05-23 23:41:57 +06:00
Qiang Xue
5a032e97df
Merge pull request #316 from tonydspaniard/313-Inflector-Helper
...
Inflector helper class
2013-05-22 14:17:20 -07:00
resurtm
2430ebe95d
MSSQL AR tests.
2013-05-22 22:37:09 +06:00
resurtm
1f9a46850c
MSSQL initial query builder.
2013-05-22 22:25:49 +06:00