Skip to content

Commit

Permalink
[RHCLOUD-35901] Drop status table (#3074)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-duval authored Nov 27, 2024
1 parent 66229ec commit d6c371a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 166 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.redhat.cloud.notifications.models.InstantEmailTemplate;
import com.redhat.cloud.notifications.models.IntegrationTemplate;
import com.redhat.cloud.notifications.models.NotificationHistory;
import com.redhat.cloud.notifications.models.Status;
import com.redhat.cloud.notifications.models.WebhookProperties;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
Expand Down Expand Up @@ -86,9 +85,5 @@ public void clean() {
eventType.setDisplayName(DEFAULT_EVENT_TYPE_DISPLAY_NAME);
eventType.setDescription(DEFAULT_EVENT_TYPE_DESCRIPTION);
applicationRepository.createEventType(eventType);

entityManager.createQuery("UPDATE CurrentStatus SET status = :status")
.setParameter("status", Status.UP)
.executeUpdate();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE status;

0 comments on commit d6c371a

Please sign in to comment.