diff --git a/logging-house-client/src/main/java/com/truzzt/extension/logginghouse/client/store/sql/SqlLoggingHouseMessageStore.java b/logging-house-client/src/main/java/com/truzzt/extension/logginghouse/client/store/sql/SqlLoggingHouseMessageStore.java index 73dec04..d61dd52 100644 --- a/logging-house-client/src/main/java/com/truzzt/extension/logginghouse/client/store/sql/SqlLoggingHouseMessageStore.java +++ b/logging-house-client/src/main/java/com/truzzt/extension/logginghouse/client/store/sql/SqlLoggingHouseMessageStore.java @@ -61,7 +61,6 @@ public void save(LoggingHouseMessage event) { Objects.requireNonNull(event.getEventToLog()); Objects.requireNonNull(event.getCreateProcess()); Objects.requireNonNull(event.getProcessId()); - Objects.requireNonNull(event.getStatus()); Objects.requireNonNull(event.getCreatedAt()); transactionContext.execute(() -> { @@ -122,7 +121,6 @@ private ZonedDateTime mapToZonedDateTime(ResultSet resultSet, String column) thr } private LoggingHouseMessage mapResultSet(ResultSet resultSet) throws Exception { - Class eventType = toClass(resultSet.getString(statements.getEventTypeColumn())); Object eventToLog; diff --git a/logging-house-client/src/main/resources/migration/logginghouse/V0_0_3__Remove_Constraint.sql b/logging-house-client/src/main/resources/migration/logginghouse/V0_0_3__Remove_Constraint.sql new file mode 100644 index 0000000..080eabe --- /dev/null +++ b/logging-house-client/src/main/resources/migration/logginghouse/V0_0_3__Remove_Constraint.sql @@ -0,0 +1,3 @@ +ALTER TABLE edc_logging_house_message + ALTER COLUMN consumer_id DROP NOT NULL, + ALTER COLUMN provider_id DROP NOT NULL; \ No newline at end of file