struct Prostore::Steps::Kind::ApplyNotNull

Overview

ApplyNotNull tightens a nullable column to NOT NULL. SQLite has no native ALTER COLUMN SET NOT NULL — the executor uses the table-rebuild helper. Postgres uses the native form.

Defined in:

prostore/steps/step.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(table_name : String, column_name : String, default_sql : String | Nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def column_name : String #

def copy_with(table_name _table_name = @table_name, column_name _column_name = @column_name, default_sql _default_sql = @default_sql) #

[View source]
def default_sql : String | Nil #

def table_name : String #