struct Prostore::Steps::Kind::AddColumnNullable

Overview

Multi-phase kinds (ADR-0009 invariant 1: user-level operations decompose into atomic steps).

AddColumnNullable adds the column as nullable regardless of the field's final nullability. Used as the first step of a non-null add-with-backfill so existing rows can hold NULL until the backfill populates them, and ApplyNotNull tightens afterward.

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 #