Skip to content

Commit

Permalink
Fix #1817 Creating configuration storage tables fail in MySQL 5.7
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jul 24, 2015
1 parent 431c504 commit 50d7c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ phpMyAdmin - ChangeLog
+ rfe Support virtual columns in MySQL 5.7.5+
+ rfe #1517 Support for virtual/persistent columns in MariaDB
- bug #4984 Undefined <feature>work upon upgrade to new version
- issue #1817 Creating configuration storage tables fail in MySQL 5.7

4.4.13.0 (not yet released)
- issue #1808 "Improve table structure" generates invalid SQL
Expand Down
4 changes: 2 additions & 2 deletions sql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ CREATE TABLE IF NOT EXISTS `pma__history` (
`username` varchar(64) NOT NULL default '',
`db` varchar(64) NOT NULL default '',
`table` varchar(64) NOT NULL default '',
`timevalue` timestamp NOT NULL,
`timevalue` timestamp NOT NULL default CURRENT_TIMESTAMP,
`sqlquery` text NOT NULL,
PRIMARY KEY (`id`),
KEY `username` (`username`,`db`,`table`,`timevalue`)
Expand Down Expand Up @@ -231,7 +231,7 @@ CREATE TABLE IF NOT EXISTS `pma__tracking` (

CREATE TABLE IF NOT EXISTS `pma__userconfig` (
`username` varchar(64) NOT NULL,
`timevalue` timestamp NOT NULL,
`timevalue` timestamp NOT NULL default CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`config_data` text NOT NULL,
PRIMARY KEY (`username`)
)
Expand Down

0 comments on commit 50d7c81

Please sign in to comment.