Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
package org.fairdatapoint.database.rdf.migration;

import jakarta.annotation.PostConstruct;
import org.fairdatapoint.Profiles;
import org.fairdatapoint.database.rdf.migration.development.metadata.AclMigration;
import org.fairdatapoint.database.rdf.migration.development.metadata.RdfMetadataMigration;
Expand All @@ -32,7 +31,9 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
Expand All @@ -52,7 +53,7 @@ public class RdfDevelopmentMigrationRunner {
@Qualifier("genericMetadataRepository")
private GenericMetadataRepository metadataRepository;

@PostConstruct
@EventListener(ApplicationReadyEvent.class)
public void run() {
rdfMetadataMigration.runMigration();
if (activeProfile.equals(Profiles.DEVELOPMENT)) {
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/application-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spring:
username: fdp
password: fdp
flyway:
locations: classpath:dev/db/migration,classpath:db/migration
locations: classpath:db/migration
fail-on-missing-locations: true
clean-disabled: false

bootstrap:
enabled: true
61 changes: 0 additions & 61 deletions src/main/resources/dev/db/migration/V0001.1__dev-data-users.sql

This file was deleted.

Loading