Table of Contents

Enum SchemaSyncLevel

Namespace
CL.MySQL2.Models
Assembly
CL.MySQL2.dll

Controls how aggressively the table sync service reconciles the live database schema with entity definitions. Higher levels allow more destructive operations.

public enum SchemaSyncLevel

Fields

Additive = 2

Safe + drops indexes and foreign keys that no longer exist in the model. No column data is lost.

Full = 3

Additive + drops columns that no longer exist in the model, and allows full DROP TABLE rebuild when used together with backups. Intended for development only.

None = 0

Skip sync entirely. No ALTER/CREATE statements are issued.

Safe = 1

Default. Adds missing columns, indexes and foreign keys, and modifies existing columns to match the model (grow VARCHAR, toggle NULL, update default, etc.). Never drops anything.