diff options
Diffstat (limited to 'migrations/2020-02-01-032552_strava_tokens')
-rw-r--r-- | migrations/2020-02-01-032552_strava_tokens/down.sql | 1 | ||||
-rw-r--r-- | migrations/2020-02-01-032552_strava_tokens/up.sql | 6 |
2 files changed, 7 insertions, 0 deletions
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 +); |