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 ExtensionMigrationProjectInheritance: object
Constructors
Section titled “Constructors”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.
Properties
Section titled “Properties”ExtensionName
Section titled “ExtensionName”Gets the extension’s name.
public string ExtensionName { get; }Value: string
ProjectDirectory
Section titled “ProjectDirectory”Gets the project’s directory.
public string ProjectDirectory { get; }Value: string
SqlDirectory
Section titled “SqlDirectory”Gets the directory that holds released upgrade scripts.
public string SqlDirectory { get; }Value: string
UnreleasedDirectory
Section titled “UnreleasedDirectory”Gets the directory of unreleased fragments.
public string UnreleasedDirectory { get; }Value: string
Version
Section titled “Version”Gets the extension’s version.
public string Version { get; }Value: string
Fields
Section titled “Fields”PropertyName
Section titled “PropertyName”Gets the MSBuild property that enables fragments and names their directory.
public const string PropertyName = "AnkusUnreleasedSqlDirectory"