Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-163

Database schema no longer compatible with MySQL 5.5

    XMLWordPrintableJSON

Details

    Description

      Recent changes from GUACAMOLE-36 modify the MySQL schema, adding an additional password_date column to guacamole_user which records the time that the password was last set. This column defaults to the current date:

      --
      -- Add per-user password set date
      --
      
      ALTER TABLE guacamole_user
          ADD COLUMN password_date DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
      

      Unfortunately, the ability to specify DEFAULT CURRENT_TIMESTAMP for a DATETIME column was a new feature in MySQL 5.6, and cannot be used for any older version of MySQL:

      http://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html

      The schema will need to be updated such that compatibility with previously-working versions of MySQL is not broken.

      Attachments

        Activity

          People

            mjumper Mike Jumper
            mjumper Mike Jumper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: