Class MigrationStep
An individual unit of migration work. Next tag: 4
Implements
Inherited Members
Namespace: Google.Apis.FirebaseDataConnect.v1beta.Data
Assembly: Google.Apis.FirebaseDataConnect.v1beta.dll
Syntax
public class MigrationStep : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Optional. Descriptive migration label (e.g. "create_accounts_table"). If omitted, defaults to "adhoc".
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Sql
Required. Raw multi-statement SQL script. The backend splits it into individual statements before execution; callers do not pre-split. Required whenever the request executes or records DDL, which is every publicly available execution mode; omitting it returns INVALID_ARGUMENT.
Declaration
[JsonProperty("sql")]
public virtual string Sql { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Optional. Monotonic 14-digit UTC timestamp (YYYYMMDDHHMMSS), matching the timestamp prefix of the
developer's migration filename. Constrained to ^[0-9]{14}$. - When specified (file migrations): If
version is already recorded in firebasesql.schema_migrations, the backend verifies that sql matches
the recorded statements and skips execution. If version is unapplied, the backend validates version > MAX(applied_version) and records the value unchanged, so the ledger row and the on-disk filename
stay identical. - When omitted (Console/ad-hoc): Backend auto-generates a 14-digit UTC timestamp.
Declaration
[JsonProperty("version")]
public virtual string Version { get; set; }
Property Value
| Type | Description |
|---|---|
| string |