Skip to content

Commit 22937e7

Browse files
author
Dominik Fässler
committed
Change data type for track_id
The data type for the track_id has been changed from integer (4 bytes) to bigint (8 bytes).
1 parent b184f85 commit 22937e7

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

install/install.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ALTER TABLE user_profiles
2626
----------------------------------------------------------------------------------------------------
2727

2828
CREATE TABLE user_tracks (
29-
track_id integer NOT NULL,
29+
track_id bigint NOT NULL,
3030
user_name varchar(40) NOT NULL,
3131
file_ref varchar(255),
3232
upload_state smallint DEFAULT 0

install/upgrade-1.0-1.1.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
----------------------------------------------------------------------------------------------------
2+
-- user_tracks
3+
----------------------------------------------------------------------------------------------------
4+
5+
ALTER TABLE user_tracks
6+
ALTER COLUMN track_id TYPE bigint using track_id::bigint;

src/api1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ def __init__(self):
4949

5050
@cherrypy.expose
5151
def index(self):
52-
return 'OpenSeaMap API v1.0'
52+
return 'OpenSeaMap API v1.1'

wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APPNAME = 'openseamap-api'
2-
VERSION = '1.0'
2+
VERSION = '1.1'
33

44

55
top = '.'

0 commit comments

Comments
 (0)