Page 1 of 1

Schema Compare - changing default datetime column value

Posted: Mon 27 Jun 2022 21:36
by BartmanDilaw
Hi
Context :
  • Windows 11
  • dbForge Schema Compare for MySQL Professional Edition 5.0.622

I get an issue while synchronizing my table column from source :

Code: Select all

$DteCre DATETIME(6) NOT NULL DEFAULT (CURRENT_TIMESTAMP(6)) COMMENT 'Date de création de l enregistrement.',
to update target :

Code: Select all

$DteCre DATETIME(6) NOT NULL DEFAULT (now(6)) COMMENT 'Date de création de l enregistrement.',
Difference is shown after comparison, but synchronization won't change anything.

Is this a known bug or am I missing something.

Re: Schema Compare - changing default datetime column value

Posted: Tue 28 Jun 2022 21:17
by BartmanDilaw
Hi everybody
It turns out that current_timestamp(6) and now(6) give same value.
My point is :
Why does "Schema Compare" show a difference that is not corrected while synchronizing ?
Is there an option I should set to change this behaviour ?
Thanks
Regards
BD

Re: Schema Compare - changing default datetime column value

Posted: Mon 04 Jul 2022 07:54
by dzhanhira
BartmanDilaw wrote: Mon 27 Jun 2022 21:36 Hi
Context :
  • Windows 11
  • dbForge Schema Compare for MySQL Professional Edition 5.0.622

I get an issue while synchronizing my table column from source :

Code: Select all

$DteCre DATETIME(6) NOT NULL DEFAULT (CURRENT_TIMESTAMP(6)) COMMENT 'Date de création de l enregistrement.',
to update target :

Code: Select all

$DteCre DATETIME(6) NOT NULL DEFAULT (now(6)) COMMENT 'Date de création de l enregistrement.',
Difference is shown after comparison, but synchronization won't change anything.

Is this a known bug or am I missing something.
Hi,

Could you please clarify which Server version do you have?