account service: default last_used to current time

This commit is contained in:
Adam
2019-01-08 20:20:11 -05:00
parent f99775aaad
commit 47fc4ad60a

View File

@@ -70,7 +70,7 @@ public class AccountService
+ " `user` int(11) NOT NULL PRIMARY KEY,\n" + " `user` int(11) NOT NULL PRIMARY KEY,\n"
+ " `uuid` varchar(36) NOT NULL,\n" + " `uuid` varchar(36) NOT NULL,\n"
+ " `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n" + " `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n"
+ " `last_used` timestamp NOT NULL,\n" + " `last_used` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n"
+ " UNIQUE KEY `uuid` (`uuid`),\n" + " UNIQUE KEY `uuid` (`uuid`),\n"
+ " KEY `user` (`user`)\n" + " KEY `user` (`user`)\n"
+ ") ENGINE=InnoDB"; + ") ENGINE=InnoDB";