struct Prostore::Steps::Kind::AlterEnumMembers

Overview

Swap the CHECK constraint on an enum column to reflect a widened member set (ADR-0016). Postgres uses DROP CONSTRAINT … ADD CONSTRAINT in a single transaction; SQLite uses the table-rebuild dance. The #field snapshot carries the final desired metadata (members, flags, portable type) so the executor can render the new CHECK and update the bookkeeping row.

Defined in:

prostore/steps/step.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(table_name : String, field : Schema::Field) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(table_name _table_name = @table_name, field _field = @field) #

[View source]
def field : Schema::Field #

def table_name : String #