Skip to content

Commit fafeed3

Browse files
authored
Update ledger-append-only-ledger-tables.md
Corrected values and name for ledger_operation_type in ledger_view; the same changes as for updatable ledger tables. Can you check if you have this information in more places?
1 parent 5092980 commit fafeed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-sql/database/ledger-append-only-ledger-tables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ For every append-only ledger table, the system automatically generates a view, c
5050
| --- | --- | --- |
5151
| ledger_transaction_id | bigint | The ID of the transaction that created or deleted a row version. |
5252
| ledger_sequence_number | bigint | The sequence number of a row-level operation within the transaction on the table. |
53-
| ledger_operation_type_id | tinyint | Contains `0` (**INSERT**) or `1` (**DELETE**). Inserting a row into the ledger table produces a new row in the ledger view that contains `0` in this column. Deleting a row from the ledger table produces a new row in the ledger view that contains `1` in this column. Updating a row in the ledger table produces two new rows in the ledger view. One row contains `1` (**DELETE**), and the other row contains `1` (**INSERT**) in this column. A DELETE shouldn't occur on an append-only ledger table. |
53+
| ledger_operation_type | tinyint | Contains `1` (**INSERT**) or `2` (**DELETE**). Inserting a row into the ledger table produces a new row in the ledger view that contains `1` in this column. Deleting a row from the ledger table produces a new row in the ledger view that contains `2` in this column. Updating a row in the ledger table produces two new rows in the ledger view. One row contains `2` (**DELETE**), and the other row contains `1` (**INSERT**) in this column. A DELETE shouldn't occur on an append-only ledger table. |
5454
| ledger_operation_type_desc | nvarchar(128) | Contains `INSERT` or `DELETE`. For more information, see the preceding row. |
5555

5656
## Next steps

0 commit comments

Comments
 (0)