001package io.ebeaninternal.dbmigration.ddlgeneration.platform; 002 003import io.ebean.config.DatabaseConfig; 004import io.ebeaninternal.dbmigration.ddlgeneration.DdlWrite; 005import io.ebeaninternal.dbmigration.migration.AddHistoryTable; 006import io.ebeaninternal.dbmigration.migration.DropHistoryTable; 007import io.ebeaninternal.dbmigration.model.MTable; 008 009import java.io.IOException; 010 011/** 012 * Default history implementation that does nothing. Needs to be replaced 013 * with an appropriate implementation for the given database platform. 014 */ 015public class NoHistorySupportDdl implements PlatformHistoryDdl { 016 017 @Override 018 public void configure(DatabaseConfig config, PlatformDdl platformDdl) { 019 // does nothing 020 } 021 022 @Override 023 public void createWithHistory(DdlWrite writer, MTable table) throws IOException { 024 // does nothing 025 } 026 027 @Override 028 public void dropHistoryTable(DdlWrite writer, DropHistoryTable dropHistoryTable) { 029 // does nothing 030 } 031 032 @Override 033 public void addHistoryTable(DdlWrite writer, AddHistoryTable addHistoryTable) throws IOException { 034 // does nothing 035 } 036 037 @Override 038 public void updateTriggers(DdlWrite write, HistoryTableUpdate update) { 039 // does nothing 040 } 041}