Alexander Mohorev
bb8550886e
PHP type casting
10 years ago
Carsten Brandt
78b5c7db66
fixed boolean handling for PostgreSQL
...
- do not allow boolean values for integer columns
- use native boolean type with boolean values
- removed workaround that turned out to be wrong when schema and values
are used correctly. Workaround resulted from wrong usage of boolean
values before.
fixes #4672
10 years ago
Carsten Brandt
c6274acf6c
ensure postgres boolean values are handled correctly
...
also fixed an issue with default value loading of bool columns.
fixes #3489 , fixes #4085 , fixes #3920
related to #4672
10 years ago
mcd.php
20774165bc
Fixes #4644 : Added `\yii\db\Schema::createColumnSchema()` to be able to customize column schema used
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
ff50f15056
proper quoting of sequence name.
10 years ago
Qiang Xue
038d5a5375
Fixes #4232 : `TableSchema::sequenceName` for PostgreSQL should remove the enclosing quotes
10 years ago
Carsten Brandt
5d0452b2ae
rename ColumnSchema::typecast to phpTypecast
10 years ago
Carsten Brandt
8a70d9fbd1
rename column schema typecast method
10 years ago
Carsten Brandt
6a48f68955
split typecast method into two
...
one method for fetching data and one for sending to db.
fixes #2287
10 years ago
Carsten Brandt
1391253a58
fixed postgres default value parsing
10 years ago
Carsten Brandt
651e6a3feb
added support for BIT default values
...
fixes #422
10 years ago
makroxyz
458c4a6623
Fix PostgreSQL enumValues
...
$column->enumValues is set to array[0 =>''] even if $info['enum_values'] is null.
Gii generates always dropDownList in forms.
10 years ago
Qiang Xue
f23b7ac57e
Fixes #3564
11 years ago
Carsten Brandt
6fd25815ba
added more types to pgsql schema, better detection
...
fixes #3578
11 years ago
Qiang Xue
f5dbd9a084
Fixes #3564 : Fixed the bug that primary key columns should not take default values from schema
11 years ago
Qiang Xue
6e7713ec13
Fixes #3567 : Fixed the bug that smallint was treated as string for PostgreSQL
11 years ago
Carsten Brandt
91965fd391
phpdoc formatting issues
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Alexander Makarov
1ff9dedf60
Fixed getting default value from postgres schema
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Luciano Baraglia
13aa88bc5b
Fix for #2087
11 years ago
Qiang Xue
9b723baa76
Added `TableSchema::fullName` property
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
cbad97c78d
change back the visibility of findTableNames to protected.
11 years ago
Mark
e23f869c69
added postgresql features to reset seq/check integrity
11 years ago
Luciano Baraglia
89f0bfe100
Making accesors public
11 years ago
Luciano Baraglia
d376da57e4
Get DB unique indexes information
11 years ago
Edin
5e092ac619
Fixed sequence id match for postgresql
...
PgAdmin generates sequence as '"Schema"."Table_seq"'::regclass when
non public schema is used.
11 years ago
Qiang Xue
64ef54bf18
Fixes #1435 : pgsql getTableNames() should not prefix table names with schema name.
11 years ago
Panagiotis Moustafellos
58bd2fb958
Only whitespace removal
11 years ago
Panagiotis Moustafellos
f6a3496e8d
Removed trailing whitespace.. (OCD really kicking in)
11 years ago
Qiang Xue
bf708aa824
Fixes #1334 : foreign key is incorrectly determined for pgsql.
11 years ago
Qiang Xue
9ef3560f5a
Fixed test break.
11 years ago
Qiang Xue
f67ddb17f6
Fixes #1242 : Gii Model generation added dropped table fields in Postgresql
11 years ago
Qiang Xue
dbf35253b7
Fixes #1237 .
11 years ago
Qiang Xue
9862ee35b2
Fixes #1115 : fixed the issue with PDO boolean value binding with pgsql
11 years ago
Qiang Xue
1551f8443c
Fixed pgsql column type detection bug.
11 years ago
Qiang Xue
26c7f6d62f
Fixed sqlite column type detection bug.
11 years ago
Carsten Brandt
f153ce443a
reverted non working fix for #1115
11 years ago
Carsten Brandt
7c630a6246
fixed problem with Postgres PDO and Boolean values
...
See the following resources for details:
yiisoft/yii#779
https://bugs.php.net/bug.php?id=33876
http://www.yiiframework.com/forum/index.php/topic/32334-boolean-type-with-postgresql/page__view__findpost__p__155647
11 years ago
Qiang Xue
bd82170142
Fixes #1096 : pgsql: sequence name not matched
11 years ago
Panagiotis Moustafellos
80e816efc3
pgsql: added 'bool' type (alias of 'boolean')
...
Relates #1086 and #1087
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Alexander Makarov
523a63f576
Added TYPE_BIGPK to Schema
11 years ago
Qiang Xue
7303bae382
Fixed foreign key generation bug for pgsql.
11 years ago
Qiang Xue
b6f07859c1
Added support for getting all tables for pgsql.
11 years ago
gsd
663fe63911
Update Schema.php
11 years ago