Fix minor issue in drop tables.

This commit is contained in:
Paulo Gustavo Veiga 2012-06-23 16:31:31 -03:00
parent 3349f2e567
commit ee93a8f7ab
4 changed files with 15 additions and 15 deletions

View File

@ -156,7 +156,7 @@ final public class NotificationService {
model.put("userAgent", userAgent);
final String errorReporterEmail = mailer.getErrorReporterEmail();
if (errorReporterEmail != null) {
if (errorReporterEmail != null && !errorReporterEmail.isEmpty()) {
mailer.sendEmail(mailer.getServerSenderEmail(), errorReporterEmail, "[WiseMapping] Editor error from " + user.getEmail(), model,
"editorErrorReport.vm");
}
@ -174,7 +174,7 @@ final public class NotificationService {
model.put("userAgent", userAgent);
final String errorReporterEmail = mailer.getErrorReporterEmail();
if (errorReporterEmail != null) {
if (errorReporterEmail != null && !errorReporterEmail.isEmpty()) {
mailer.sendEmail(mailer.getServerSenderEmail(), errorReporterEmail, "[WiseMapping] Export error from " + user.getEmail(), model,
"editorErrorReport.vm");
}

View File

@ -3,18 +3,18 @@
##################################################################################
# MySQL 5.X configuration properties
database.url=jdbc:mysql://localhost/wisemapping
database.driver=com.mysql.jdbc.Driver
database.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
database.username=wisemapping
database.password=password
#database.url=jdbc:mysql://localhost/wisemapping
#database.driver=com.mysql.jdbc.Driver
#database.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#database.username=wisemapping
#database.password=password
# HSQL Configuration properties
#database.url=jdbc:hsqldb:file:target/db/wisemapping
#database.driver=org.hsqldb.jdbc.JDBCDriver
#database.hibernate.dialect=org.hibernate.dialect.HSQLDialect
#database.username=sa
#database.password=
database.url=jdbc:hsqldb:file:target/db/wisemapping
database.driver=org.hsqldb.jdbc.JDBCDriver
database.hibernate.dialect=org.hibernate.dialect.HSQLDialect
database.username=sa
database.password=
##################################################################################
@ -51,7 +51,7 @@ mail.serverSendEmail=root@localhost
mail.supportEmail=root@localhost
# Optional: Unexpected error will be reported to this address.
mail.errorReporterEmail=root@localhost
mail.errorReporterEmail=
##################################################################################
# Users Registration Configuration

View File

@ -1,3 +1,4 @@
DROP TABLE ACCESS_AUDITORY;
DROP TABLE TAG;
DROP TABLE COLLABORATION;
DROP TABLE COLLABORATION_PROPERTIES;
@ -5,6 +6,5 @@ DROP TABLE MINDMAP_HISTORY;
DROP TABLE MINDMAP;
DROP TABLE USER;
DROP TABLE COLLABORATOR;
DROP TABLE USER_LOGIN;
COMMIT;
SHUTDOWN;

View File

@ -1,9 +1,9 @@
DROP TABLE TAG;
DROP TABLE ACCESS_AUDITORY;
DROP TABLE COLLABORATION;
DROP TABLE COLLABORATION_PROPERTIES;
DROP TABLE MINDMAP_HISTORY;
DROP TABLE MINDMAP;
DROP TABLE USER;
DROP TABLE COLLABORATOR;
DROP TABLE USER_LOGIN;
COMMIT;