mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
"allow to use now() beside current_timestamp, as Postgres backups contain it and it's easier to remember anyway"
This commit is contained in:
parent
2a03d32d81
commit
a083233c43
@ -1030,7 +1030,8 @@ class schema_proc
|
|||||||
break;
|
break;
|
||||||
case 'date':
|
case 'date':
|
||||||
$ado_col = 'D';
|
$ado_col = 'D';
|
||||||
if ($col_data['default'] == 'current_date')
|
// allow to use now() beside current_date, as Postgres backups contain it and it's easier to remember anyway
|
||||||
|
if (in_array($col_data['default'],array('current_date','now()')))
|
||||||
{
|
{
|
||||||
$ado_col .= ' DEFDATE';
|
$ado_col .= ' DEFDATE';
|
||||||
unset($col_data['default']);
|
unset($col_data['default']);
|
||||||
@ -1064,7 +1065,8 @@ class schema_proc
|
|||||||
break;
|
break;
|
||||||
case 'timestamp':
|
case 'timestamp':
|
||||||
$ado_col = 'T';
|
$ado_col = 'T';
|
||||||
if ($col_data['default'] == 'current_timestamp')
|
// allow to use now() beside current_timestamp, as Postgres backups contain it and it's easier to remember anyway
|
||||||
|
if (in_array($col_data['default'],array('current_timestamp','now()')))
|
||||||
{
|
{
|
||||||
$ado_col .= ' DEFTIMESTAMP';
|
$ado_col .= ' DEFTIMESTAMP';
|
||||||
unset($col_data['default']);
|
unset($col_data['default']);
|
||||||
|
Loading…
Reference in New Issue
Block a user