From cac3fc6e47b669a8f47fa2f19cf74ec60813f735 Mon Sep 17 00:00:00 2001 From: JohnA Date: Mon, 26 Jun 2017 08:05:10 -0700 Subject: [PATCH] adding a column requires data type constraint --- Unit01.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unit01.md b/Unit01.md index dc52735..f5c5a7f 100644 --- a/Unit01.md +++ b/Unit01.md @@ -137,7 +137,7 @@ Ok, so now we can go back into the terminal and view our data. ### alter a table: -ALTER TABLE foo ADD COLUMN id; +ALTER TABLE foo ADD COLUMN id serial; ### create a database table with an auto-incrementer: CREATE TABLE users (id SERIAL, name TEXT, age INT);