Skip to content

Commit c10e23f

Browse files
author
Jethro Beekman
committed
Update example tables to be compatible with CockroachDB
1 parent 9cb56fe commit c10e23f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • examples
    • getting_started_step_1/migrations/20160815133237_create_posts
    • getting_started_step_2/migrations/20160815133237_create_posts
    • getting_started_step_3/migrations/20160815133237_create_posts
    • getting_started_step_4/migrations/20160815133237_create_posts

examples/getting_started_step_1/migrations/20160815133237_create_posts/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CREATE TABLE posts (
22
id SERIAL PRIMARY KEY,
33
title VARCHAR NOT NULL,
44
body TEXT NOT NULL,
5-
published BOOLEAN NOT NULL DEFAULT 'f'
5+
published BOOLEAN NOT NULL DEFAULT FALSE
66
)

examples/getting_started_step_2/migrations/20160815133237_create_posts/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CREATE TABLE posts (
22
id SERIAL PRIMARY KEY,
33
title VARCHAR NOT NULL,
44
body TEXT NOT NULL,
5-
published BOOLEAN NOT NULL DEFAULT 'f'
5+
published BOOLEAN NOT NULL DEFAULT FALSE
66
)

examples/getting_started_step_3/migrations/20160815133237_create_posts/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CREATE TABLE posts (
22
id SERIAL PRIMARY KEY,
33
title VARCHAR NOT NULL,
44
body TEXT NOT NULL,
5-
published BOOLEAN NOT NULL DEFAULT 'f'
5+
published BOOLEAN NOT NULL DEFAULT FALSE
66
)

examples/getting_started_step_4/migrations/20160815133237_create_posts/up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ CREATE TABLE posts (
22
id SERIAL PRIMARY KEY,
33
title VARCHAR NOT NULL,
44
body TEXT NOT NULL,
5-
published BOOLEAN NOT NULL DEFAULT 'f'
5+
published BOOLEAN NOT NULL DEFAULT FALSE
66
)

0 commit comments

Comments
 (0)