Player12
An open source football management simulator
Loading...
Searching...
No Matches
Migrations::Migration Struct Reference

#include <migrations.h>

Public Attributes

int number = 0
 
std::string_view name
 
std::span< const ColumnSpec > columns
 
void(* apply )(const MigrationContext &) = nullptr
 

Member Data Documentation

◆ apply

void(* Migrations::Migration::apply) (const MigrationContext &) = nullptr

Optional data step, run after the columns; must be idempotent.

◆ columns

std::span<const ColumnSpec> Migrations::Migration::columns

Added only to tables that exist and lack them (explicit checks).

◆ name

std::string_view Migrations::Migration::name

◆ number

int Migrations::Migration::number = 0

The documentation for this struct was generated from the following file: