Skip to content
This repository was archived by the owner on Apr 5, 2019. It is now read-only.

Commit bee493f

Browse files
committed
Use bigint type for the Log table's primary key
1 parent 9e6e192 commit bee493f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/generate-schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn create_logs_schema(conn: &Connection) {
3838
cinfo!("Create logs table");
3939
conn.execute(
4040
"CREATE TABLE IF NOT EXISTS logs (
41-
id SERIAL PRIMARY KEY,
41+
id BIGSERIAL PRIMARY KEY,
4242
name VARCHAR NOT NULL,
4343
level VARCHAR NOT NULL,
4444
target VARCHAR NOT NULL,

src/db/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub enum OrderBy {
171171
#[derive(Debug, Serialize)]
172172
#[serde(rename_all = "camelCase")]
173173
pub struct Log {
174-
pub id: i32,
174+
pub id: i64,
175175
pub node_name: String,
176176
pub level: String,
177177
pub target: String,

0 commit comments

Comments
 (0)