Skip to content

Commit 668f1f1

Browse files
SeunMattzhendrikse
authored andcommitted
Added SQL File to Create test Database (eugenp#3086)
* added updated example codes * updated example code StringToCharStream * deleted StringToCharStream.java locally * removed redundant file * added code for apache commons collection SetUtils * refactored example code * added example code for bytebuddy * added example code for PCollections * update pom * refactored tests for PCollections * spring security xml config * spring security xml config * remove redundant comment * example code for apache-shiro * updated example code for Vavr Collections * updated Vavr's Collection example * updated Vavr Collection file * updated example code for Apache Shiro * updated Vavr Collections example * added example code for N1QL * update example code for N1QL * added integration test for N1QL * update N1QL Example code * update the N1QL example Code * rename module to couchbase * rename module to couchbase * change module name in parent module and pom * added cas-server module * added cas secured app for Spring SSO with CAS * refactor cas modules into cas folder * updated files * removed redundant files * refactor the config for cas-server * added sql file to generate tables and database
1 parent 4d3e730 commit 668f1f1

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

cas/cas-server/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ cas.authn.jdbc.query[0].sql=SELECT * FROM users WHERE email = ?
109109
cas.authn.jdbc.query[0].url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
110110
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQLDialect
111111
cas.authn.jdbc.query[0].user=root
112-
cas.authn.jdbc.query[0].password=
112+
cas.authn.jdbc.query[0].password=root
113113
cas.authn.jdbc.query[0].ddlAuto=none
114114
#cas.authn.jdbc.query[0].driverClass=com.mysql.jdbc.Driver
115115
cas.authn.jdbc.query[0].driverClass=com.mysql.cj.jdbc.Driver
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- Dumping database structure for test
2+
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
3+
USE `test`;
4+
5+
-- Dumping structure for table test.users
6+
CREATE TABLE IF NOT EXISTS `users` (
7+
`id` int(11) NOT NULL AUTO_INCREMENT,
8+
`email` varchar(50) DEFAULT NULL,
9+
`password` text DEFAULT NULL,
10+
PRIMARY KEY (`id`)
11+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
12+
13+
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
14+
INSERT INTO `users` (`id`, `email`, `password`) VALUES
15+
(1, '[email protected]', 'Mellon');
16+
/*!40000 ALTER TABLE `users` ENABLE KEYS */;

0 commit comments

Comments
 (0)