Skip to content

Commit ab20a47

Browse files
committed
refactor: Change type for city.id to bigint
Refs: #92
1 parent d4097eb commit ab20a47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/world.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BEGIN;
1010
SET client_encoding TO 'UTF8';
1111

1212
CREATE TABLE city (
13-
id integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
13+
id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
1414
name text NOT NULL,
1515
country_code character(3) NOT NULL,
1616
district text NOT NULL,
@@ -44,7 +44,7 @@ CREATE TABLE country (
4444
local_name text NOT NULL,
4545
government_form text NOT NULL,
4646
head_of_state text,
47-
capital integer,
47+
capital bigint,
4848
code2 character(2) NOT NULL
4949
);
5050

0 commit comments

Comments
 (0)