ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rle...@apache.org
Subject [ambari] branch trunk updated: fixing DB script
Date Sat, 17 Mar 2018 15:28:40 GMT
This is an automated email from the ASF dual-hosted git repository.

rlevas pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 408a436  fixing DB script
408a436 is described below

commit 408a436944c37ff480526f00185653b8c6328c53
Author: Srikanth Janardhan <sjanardhan@hortonworks.com>
AuthorDate: Sat Mar 17 12:49:47 2018 +0530

    fixing DB script
---
 ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
index 16ee6b6..48f4311 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
@@ -327,7 +327,7 @@ CREATE TABLE user_authentication (
   user_id INTEGER NOT NULL,
   authentication_type VARCHAR(50) NOT NULL,
   authentication_key TEXT,
-  create_time TIMESTAMP NOT NULL DEFAULT 0,
+  create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
   update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
   CONSTRAINT PK_user_authentication PRIMARY KEY (user_authentication_id),
   CONSTRAINT FK_user_authentication_users FOREIGN KEY (user_id) REFERENCES users (user_id)

-- 
To stop receiving notification emails like this one, please contact
rlevas@apache.org.

Mime
View raw message