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 @@ -20,7 +20,7 @@

namespace FluentMigrator.Runner.Generators.MySql
{
internal class MySql4TypeMap : TypeMapBase, IMySqlTypeMap
public class MySql4TypeMap : TypeMapBase, IMySqlTypeMap
{
public const int AnsiTinyStringCapacity = 127;
public const int StringCapacity = 255;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,28 @@ public MySql5Generator(
{
}

public MySql5Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IMySqlTypeMap typeMap)
: this(quoter, typeMap, new OptionsWrapper<GeneratorOptions>(new GeneratorOptions()))
{
}

public MySql5Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IOptions<GeneratorOptions> generatorOptions)
: this(new MySqlColumn(new MySql5TypeMap(), quoter), quoter, new EmptyDescriptionGenerator(), generatorOptions)
{
}

public MySql5Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IMySqlTypeMap typeMap,
[NotNull] IOptions<GeneratorOptions> generatorOptions)
: base(new MySqlColumn(typeMap, quoter), quoter, new EmptyDescriptionGenerator(), generatorOptions)
{
}

protected MySql5Generator(
[NotNull] IColumn column,
[NotNull] IQuoter quoter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace FluentMigrator.Runner.Generators.MySql
{
internal class MySql5TypeMap : MySql4TypeMap
public class MySql5TypeMap : MySql4TypeMap
{
public new const int DecimalCapacity = 65;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public MySql8Generator(
{
}

public MySql8Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IMySqlTypeMap typeMap)
: this(quoter, typeMap, new OptionsWrapper<GeneratorOptions>(new GeneratorOptions()))
{
}

public MySql8Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IOptions<GeneratorOptions> generatorOptions)
Expand All @@ -52,6 +59,14 @@ public MySql8Generator(
{
}

public MySql8Generator(
[NotNull] MySqlQuoter quoter,
[NotNull] IMySqlTypeMap typeMap,
[NotNull] IOptions<GeneratorOptions> generatorOptions)
: base(new MySqlColumn(typeMap, quoter), quoter, new EmptyDescriptionGenerator(), generatorOptions)
{
}

protected MySql8Generator(
[NotNull] IColumn column,
[NotNull] IQuoter quoter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace FluentMigrator.Runner.Generators.MySql
{
internal class MySql8TypeMap : MySql5TypeMap
public class MySql8TypeMap : MySql5TypeMap
{
}
}