Commit Graph

51 Commits

Author SHA1 Message Date
Marco van 't Wout
5981d4bca1 Use the previous column alias "adsrc" to be fully backwards compatible in case someone extended this class. 2020-10-02 15:29:04 +02:00
Marco van 't Wout
10811ea439 Replace the obsolete method of retrieving a table constraint, which was removed in PostgreSQL 12.
Changed according to notes in https://www.postgresql.org/docs/12/release-12.html:

> Remove obsolete pg_constraint.consrc column (Peter Eisentraut)
> This column has been deprecated for a long time, because it did not update in response to other catalog changes (such as column renamings). The recommended way to get a text version of a check constraint's expression from pg_constraint is pg_get_expr(conbin, conrelid). pg_get_constraintdef() is also a useful alternative.
2020-10-02 14:48:44 +02:00
Marco van 't Wout
d3803ad544 Replace the obsolete method of retrieving a column's default value, which was removed in PostgreSQL 12.
Changed according to notes in https://www.postgresql.org/docs/12/release-12.html:

> Remove obsolete pg_attrdef.adsrc column (Peter Eisentraut)
> This column has been deprecated for a long time, because it did not update in response to other catalog changes (such as column renamings). The recommended way to get a text version of a default-value expression from pg_attrdef is pg_get_expr(adbin, adrelid).
2020-10-02 14:42:25 +02:00
Marco van 't Wout
82d686daac Preparatory refactoring, put each select column on a new line to increase readability 2020-10-02 14:22:52 +02:00
Alexander Makarov
6e87e50304 Fixes #3757: Fixed regression in CPgsqlSchema::dropIndex() 2016-01-04 01:19:12 +03:00
John Was
5e4851fa7b in CPgsqlColumnSchema don't set size for time types with precision
fixes #264
close #2802
2014-08-15 02:00:09 +02:00
Carsten Brandt
81dea0e51c fixed pgsql test break 2014-01-28 14:43:22 +01:00
Carsten Brandt
b5604bad48 fixed #2969 CPgsqlSchema::addColumn() converts column type twice 2014-01-28 12:39:27 +01:00
Carsten Brandt
e5f7eb2543 CPgsqlColumnSchema can't parse default value for numeric field
fixes #2235
2014-01-28 12:36:29 +01:00
Carsten Brandt
3d4b19e018 Merge pull request #2803 from nineinchnick/788-postgresql-createindex
use the preffered method of creating an unique index in postgresql
2014-01-28 03:30:23 -08:00
John Was
5929736f35 rename biginteger to bigint 2013-09-15 12:40:31 +02:00
John Was
9e8a4b1a52 introduce bigpk and biginteger column types in each class extending CDbSchema 2013-09-13 21:39:34 +02:00
John Was
da68e9ab13 use the preffered method of creating an unique index in postgresql as suggested by the manual 2013-08-21 23:08:32 +02:00
resurtm
0b41782f03 Fixes #2241: resetSequence() inconsistency. 2013-05-30 21:38:51 +06:00
resurtm
bd0483cfc5 Fixes #2336: PostgreSQL: CDbCommandBuilder uses NULL instead of DEFAULT as default value for the primary keys of serial type. 2013-04-15 18:42:41 +06:00
Ragazzo
07ec4be9b2 Small formatting fix 2013-02-19 05:19:11 +04:00
Ragazzo
f65ad8836c 2013-02-19 05:15:09 +04:00
Ragazzo
911ea9de2c Fixed formatting 2013-02-19 05:06:22 +04:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Alexander Kochetov
486723805e else if => elseif 2012-10-03 10:20:14 +04:00
Alexander Makarov
d865a3bab8 Fixes #1057 Removed SVN ids 2012-09-09 22:23:45 +04:00
resurtm
9199e92f79 Enh #556: Added CDbColumnSchema::$comment which stores comment for the table column, comment retrieving is working for MySQL and PgSQL. 2012-08-03 20:31:55 +06:00
CeBe
f3b41a9897 Fixed datetime column type for postgresql
'time' -> 'timestamp' which will hold date and time, not only time
this fixes issue #193
2012-02-17 20:17:19 +01:00
mdomba
a7ef3d5d02 removed 1.0.x reference from documentation 2011-12-28 12:29:24 +00:00
qiang.xue
28c370f530 (Fixes issue 2493) 2011-06-23 14:53:50 +00:00
qiang.xue
e1ee5197c3 (Fixes issue 1770) 2011-03-19 01:26:47 +00:00
qiang.xue
d2b53311ff (Fixes issue 1809) 2011-03-14 03:41:55 +00:00
alexander.makarow
2ab981b454 reverted method chaining support 2011-02-24 16:42:44 +00:00
alexander.makarow
75041e8620 Chained calls are now possible for most framework class setters and methods not returning a value 2011-02-23 20:20:28 +00:00
qiang.xue
4be0af6917 changed copyright year. 2011-01-01 19:31:13 +00:00
qiang.xue
11914f5e0d (Fixes issue 1879) 2010-12-28 16:24:25 +00:00
qiang.xue
d2d2daa9e9 swap the parameter order of createIndex/dropIndex. 2010-11-30 02:38:24 +00:00
qiang.xue
3d984fbc25 * Added query builder methods for building database schema manipulation queries. 2010-11-28 02:49:35 +00:00
qiang.xue
3325e62dd5 CDbConnection::quoteColumnName and quoteTableName will properly quote table prefix and schema prefix. 2010-11-27 02:34:04 +00:00
mdomba
72b974560b Updated PHPDoc @param parameter names 2010-09-23 13:28:52 +00:00
mdomba
ef2ca77957 added PHPDoc param where needed 2010-09-23 12:34:33 +00:00
qiang.xue
515c598ce4 (Fixes issue 1231) 2010-06-25 19:56:58 +00:00
qiang.xue
775a69341a (Fixes issue 1323) 2010-06-25 19:18:18 +00:00
qiang.xue
3af175edfd (Fixes issue 1231) 2010-05-18 02:58:48 +00:00
qiang.xue
e275ae0991 (Fixes issue 1115) 2010-04-13 01:52:10 +00:00
qiang.xue
eb54ba7407 modified copyright info. 2010-01-07 21:02:00 +00:00
qiang.xue
86497b872d merge from 1.0 2009-12-07 17:00:34 +00:00
qiang.xue
3c62111031 (Fixes issue 642) 2009-10-27 16:05:29 +00:00
qiang.xue
7c9033cb1e * Added CDbSchema::resetSequence() and checkIntegrity() 2009-06-10 19:58:14 +00:00
qiang.xue
3aa81fab34 merge from 1.0. 2009-05-10 12:25:55 +00:00
qiang.xue
255f0a6511 merge from 1.0 2009-03-10 18:00:11 +00:00
qiang.xue
7c16ad79a3 merge from 1.0 2009-01-09 22:07:29 +00:00
qiang.xue
20bf28469f merge from 1.0. 2008-12-30 23:14:31 +00:00
qiang.xue
55bdd955a5 removed carriage returns from files. 2008-10-13 21:26:19 +00:00