From 66fe4c6bd0a02bc6afb7de2144458379262a1488 Mon Sep 17 00:00:00 2001 From: Gopi Katwala Date: Tue, 16 Jul 2019 18:27:46 -0400 Subject: [PATCH] Updated table user, changed username and password to be blob instead of string --- AstuteSystem/sql/astute.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AstuteSystem/sql/astute.sql b/AstuteSystem/sql/astute.sql index c2b4e02..4053c86 100644 --- a/AstuteSystem/sql/astute.sql +++ b/AstuteSystem/sql/astute.sql @@ -793,10 +793,10 @@ BEGIN END; -- Dumping structure for table astute.user -CREATE TABLE IF NOT EXISTS `user` ( +CREATE TABLE `user` ( `user_id` int(5) NOT NULL, - `username` varchar(20) DEFAULT NULL, - `password` varchar(20) DEFAULT NULL, + `username` blob, + `password` blob, `first_name` varchar(20) DEFAULT NULL, `middle_name` varchar(20) DEFAULT NULL, `last_name` varchar(20) DEFAULT NULL, @@ -812,7 +812,7 @@ CREATE TABLE IF NOT EXISTS `user` ( INSERT INTO `user` (`user_id`, `username`, `password`, `first_name`, `middle_name`, `last_name`, `role`, `email`, `office_phone_ext`, `cell_phone`) VALUES (1, ENCODE('sparikh', 'astutesecret'), ENCODE('sparikh', 'astutesecret'), 'Saurin', NULL, 'Parikh', 'Owner', 'sparikh@Astuteng.com', 2024002004, 3014616485), (2, ENCODE('humaretiya', 'astutesecret'), ENCODE('humaretiya', 'astutesecret'), 'Haresh', NULL, 'Umaretiya', 'Owner', 'Humaretiya@astuteng.com', 2024002004, 0); -/*!40000 ALTER TABLE ENCODE('gkatwala', 'astutesecret')`user` ENABLE KEYS */; + /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;