Loading src/main/resources/application.properties +1 −2 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc?serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc spring.datasource.username=root spring.datasource.password=root spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true Loading src/main/resources/data.sql +9 −8 Original line number Diff line number Diff line DELETE from `auth_user_role` where 1; DELETE from `auth_user` where 1; DELETE from `auth_role` where 1; INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 1, 'This user have all rights', 'ADMIN' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=1); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 2, 'This user can ask for assisstance', 'POULAIN' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=2); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) VALUES (1, 'This user have all rights', 'ADMIN'), (2, 'This user can ask for assisstance', 'POULAIN'), (3, 'This user can offer help', 'MENTOR'); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 3, 'This user can offer help', 'MENTOR' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=3); INSERT INTO `auth_user` (`auth_user_id`, `email`, `password`, `username`) VALUES (1, 'admin@admin.admin', '$2a$10$mHJ3ElBZ.BZkneNA25fEVOJdqEjwnXS9MduHsO5Dpr2R0.4W0/o0G', 'admin'), Loading Loading
src/main/resources/application.properties +1 −2 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc?serverTimezone=UTC spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc spring.datasource.username=root spring.datasource.password=root spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true Loading
src/main/resources/data.sql +9 −8 Original line number Diff line number Diff line DELETE from `auth_user_role` where 1; DELETE from `auth_user` where 1; DELETE from `auth_role` where 1; INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 1, 'This user have all rights', 'ADMIN' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=1); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 2, 'This user can ask for assisstance', 'POULAIN' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=2); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) VALUES (1, 'This user have all rights', 'ADMIN'), (2, 'This user can ask for assisstance', 'POULAIN'), (3, 'This user can offer help', 'MENTOR'); INSERT INTO `auth_role` (`auth_role_id`, `role_desc`, `role_name`) Select 3, 'This user can offer help', 'MENTOR' WHERE NOT EXISTS (SELECT * FROM `auth_role` WHERE `auth_role_id`=3); INSERT INTO `auth_user` (`auth_user_id`, `email`, `password`, `username`) VALUES (1, 'admin@admin.admin', '$2a$10$mHJ3ElBZ.BZkneNA25fEVOJdqEjwnXS9MduHsO5Dpr2R0.4W0/o0G', 'admin'), Loading