From af21c82dd6d4834f987b01a74fc5499f1fbbdfb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 23 Jan 2021 19:03:55 +0100 Subject: [PATCH] Better explain why id is autoincremented --- Documentation/GettingStarted.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/GettingStarted.md b/Documentation/GettingStarted.md index fad42f6c5..c34b6f57e 100644 --- a/Documentation/GettingStarted.md +++ b/Documentation/GettingStarted.md @@ -190,7 +190,7 @@ The database table for players is named `player`, because GRDB recommends that t The primary key for players is an auto-incremented column named `id`. It also could have been a UUID column named `uuid`. GRDB generally accepts all primary keys, even if they are not named `id`, even if they span several columns, without any extra setup. Yet `id` is a frequent convention. -The `id` column is [autoincremented](https://sqlite.org/autoinc.html), in order to avoid id reuse. Reused ids can trip up [database observation] tools: a deletion followed by an insertion with the same id may wrongly be interpreted as an update. +The `id` column is [autoincremented](https://sqlite.org/autoinc.html), in order to avoid id reuse. Reused ids can trip up [database observation] tools: a deletion followed by an insertion with the same id may be interpreted as an update, with unintended consequences.