From 8c4fc83ca03aafa7da0b5bab4da8ab4f36c9359c Mon Sep 17 00:00:00 2001 From: Tine Date: Tue, 27 Feb 2024 15:43:20 +0100 Subject: [PATCH] fix: table name --- database/sqlite/migrations/2024-02-27-initial.sql | 6 +++--- deploy/fly.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/database/sqlite/migrations/2024-02-27-initial.sql b/database/sqlite/migrations/2024-02-27-initial.sql index 0efcf46..cd4fbde 100644 --- a/database/sqlite/migrations/2024-02-27-initial.sql +++ b/database/sqlite/migrations/2024-02-27-initial.sql @@ -1,5 +1,5 @@ -- +migrate Up -CREATE TABLE o_auth2_states ( +CREATE TABLE oauth2_states ( state TEXT, expiry DATETIME, PRIMARY KEY (state) @@ -39,7 +39,7 @@ CREATE TABLE monitor_worker_groups ( CONSTRAINT fk_monitor_worker_groups_monitor FOREIGN KEY (monitor_slug) REFERENCES monitors(slug) ); -CREATE TABLE "monitor_histories" ( +CREATE TABLE monitor_histories ( monitor_slug TEXT, status TEXT, note TEXT, @@ -51,7 +51,7 @@ CREATE TABLE "monitor_histories" ( ); -- +migrate Down -DROP TABLE o_auth2_states; +DROP TABLE oauth2_states; DROP TABLE monitor_worker_groups; DROP TABLE worker_groups; DROP TABLE monitor_histories; diff --git a/deploy/fly.toml b/deploy/fly.toml index 0788dae..506100d 100644 --- a/deploy/fly.toml +++ b/deploy/fly.toml @@ -17,8 +17,8 @@ primary_region = 'waw' ROOT_URL = 'https://zdravko.mnts.dev' TEMPORAL_SERVER_HOST = 'server.process.zdravko.internal:7233' - TEMPORAL_DATABASE_PATH = '/data/temporal-4.db' - DATABASE_PATH = '/data/zdravko-4.db' + TEMPORAL_DATABASE_PATH = '/data/temporal-5.db' + DATABASE_PATH = '/data/zdravko-5.db' [processes] server = '--temporal --server'