package com.iqser.red.service.persistence.management.v1.processor.migration.migrations;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iqser.red.service.persistence.management.v1.processor.migration.Migration;
import com.iqser.red.service.persistence.management.v1.processor.service.persistence.LegalBasisMigrationService;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Setter
@Service
public class V28AddTechnicalNameToJustifications extends Migration {

    private static final String NAME = "Migration to add a technical name to justifications";
    private static final long VERSION = 28;
    @Autowired
    private LegalBasisMigrationService legalBasisMigrationService;


    public V28AddTechnicalNameToJustifications() {

        super(NAME, VERSION);
    }


    @Override
    protected void migrate() {

        this.legalBasisMigrationService.migrate();

    }

}
