Skip to content

ExtensionMigrationProject

Namespace: Ankus.PgConfig

Assembly: Ankus.PgConfig.dll

Describes an extension project that keeps its upgrade SQL as migration fragments, one file per change in an unreleased directory, as a pgrx package that sets unreleased-sql-dir does.

public sealed class ExtensionMigrationProject

Inheritance: object

ExtensionMigrationProject(string, string, string, string)

Section titled “ExtensionMigrationProject(string, string, string, string)”

Describes a project.

public ExtensionMigrationProject(string projectDirectory, string extensionName, string version, string unreleasedDirectory)

Parameters:

projectDirectory — string

The project’s directory, whose sql/ holds upgrade scripts.

extensionName — string

The extension’s name.

version — string

The extension’s version.

unreleasedDirectory — string

The directory of unreleased fragments, relative to the project.

Exceptions:

  • ArgumentException: An argument is blank, or the version isn’t one that can be ordered.

Gets the extension’s name.

public string ExtensionName { get; }

Value: string

Gets the project’s directory.

public string ProjectDirectory { get; }

Value: string

Gets the directory that holds released upgrade scripts.

public string SqlDirectory { get; }

Value: string

Gets the directory of unreleased fragments.

public string UnreleasedDirectory { get; }

Value: string

Gets the extension’s version.

public string Version { get; }

Value: string

Gets the MSBuild property that enables fragments and names their directory.

public const string PropertyName = "AnkusUnreleasedSqlDirectory"