From 263605f2b0404ffe04fedde644b0aaccc1e84b85 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 31 Jan 2020 22:59:10 -0500 Subject: Exchange and store strava tokens --- migrations/2020-02-01-032552_strava_tokens/down.sql | 1 + migrations/2020-02-01-032552_strava_tokens/up.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/2020-02-01-032552_strava_tokens/down.sql create mode 100644 migrations/2020-02-01-032552_strava_tokens/up.sql (limited to 'migrations') diff --git a/migrations/2020-02-01-032552_strava_tokens/down.sql b/migrations/2020-02-01-032552_strava_tokens/down.sql new file mode 100644 index 0000000..0301581 --- /dev/null +++ b/migrations/2020-02-01-032552_strava_tokens/down.sql @@ -0,0 +1 @@ +drop table strava_tokens; diff --git a/migrations/2020-02-01-032552_strava_tokens/up.sql b/migrations/2020-02-01-032552_strava_tokens/up.sql new file mode 100644 index 0000000..bf7e9b1 --- /dev/null +++ b/migrations/2020-02-01-032552_strava_tokens/up.sql @@ -0,0 +1,6 @@ +create table strava_tokens ( + username varchar not null primary key references users(username), + refresh_token varchar(64) not null, + access_token varchar(64) not null, + expires_at timestamptz not null +); -- cgit v1.2.3