From 7491ae9e3c8326b7490a1d77600080453b09a0a9 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Thu, 4 May 2023 17:26:33 +0200 Subject: [PATCH] Fix typo in DB schema --- internal/repository/migrations/mysql/01_init-schema.up.sql | 3 ++- internal/repository/migrations/sqlite3/01_init-schema.up.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/repository/migrations/mysql/01_init-schema.up.sql b/internal/repository/migrations/mysql/01_init-schema.up.sql index e22eac8..d3369fc 100644 --- a/internal/repository/migrations/mysql/01_init-schema.up.sql +++ b/internal/repository/migrations/mysql/01_init-schema.up.sql @@ -32,7 +32,8 @@ CREATE TABLE IF NOT EXISTS job ( net_data_vol_total REAL NOT NULL DEFAULT 0.0, file_bw_avg REAL NOT NULL DEFAULT 0.0, file_data_vol_total REAL NOT NULL DEFAULT 0.0, - UNIQUE (job_id, cluster, start_time); + UNIQUE (job_id, cluster, start_time) + ); CREATE TABLE IF NOT EXISTS tag ( id INTEGER PRIMARY KEY, diff --git a/internal/repository/migrations/sqlite3/01_init-schema.up.sql b/internal/repository/migrations/sqlite3/01_init-schema.up.sql index 6c81df8..eab2d8d 100644 --- a/internal/repository/migrations/sqlite3/01_init-schema.up.sql +++ b/internal/repository/migrations/sqlite3/01_init-schema.up.sql @@ -32,7 +32,8 @@ CREATE TABLE IF NOT EXISTS job ( net_data_vol_total REAL NOT NULL DEFAULT 0.0, file_bw_avg REAL NOT NULL DEFAULT 0.0, file_data_vol_total REAL NOT NULL DEFAULT 0.0, - UNIQUE (job_id, cluster, start_time); + UNIQUE (job_id, cluster, start_time) + ); CREATE TABLE IF NOT EXISTS tag ( id INTEGER PRIMARY KEY,