Unsupported Screen Size: The viewport size is too small for the theme to render properly.

On Update Column For Table Creation , Altering

forums forums SQLyog SQLyog: Bugs / Feature Requests On Update Column For Table Creation , Altering

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #12295
      Mirel Stoica
      Member

      Hi

      Please add a new column after default in create/alter table window for ON UPDATE event.

      Timestamp field can have default value current_timestamp and on update current_timestamp.

      if on update current_timestamp is not filled it only has current_timestamp for insert.

      thank you

      Mirel STOICA

    • #32106
      peterlaursen
      Participant

      Please read this FAQ:

      http://www.webyog.com/faq/content/8/159/en/how-do-i-define-timestamp-properties-with-sqlyog.html

      The first “TIMESTAMP NOT NULL” in a table is automatically becoming “”TIMESTAMP NOT NULL DEFAULT CURENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP”. This is like this in MySQL since version 4.1 for compliance with earlier versions. So what you need to do is smply the check the NOT NULL checkbox and *nothing more* (ie. do not set a default explicitly)

    • #32107
      Mirel Stoica
      Member

      it's working thanks

Viewing 2 reply threads
  • You must be logged in to reply to this topic.