diff options
| author | Nathan Perry <avaglir@gmail.com> | 2019-03-08 18:10:59 -0500 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2019-03-08 18:10:59 -0500 |
| commit | 108db50a7374a785f309e049b287e9b47532f566 (patch) | |
| tree | d25be7765dcf79e259fd431a0bf3bc0979da0ce1 /migrations | |
| parent | 86025df1f6d814c98a14211ceb4da6cf6de915c7 (diff) | |
working version
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/2019-03-08-073831_store-token/down.sql | 2 | ||||
| -rw-r--r-- | migrations/2019-03-08-073831_store-token/up.sql | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/migrations/2019-03-08-073831_store-token/down.sql b/migrations/2019-03-08-073831_store-token/down.sql deleted file mode 100644 index c2bacf0..0000000 --- a/migrations/2019-03-08-073831_store-token/down.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP INDEX oauth_token_exp_index; -DROP TABLE google_oauth_tokens; diff --git a/migrations/2019-03-08-073831_store-token/up.sql b/migrations/2019-03-08-073831_store-token/up.sql deleted file mode 100644 index 94f826b..0000000 --- a/migrations/2019-03-08-073831_store-token/up.sql +++ /dev/null @@ -1,10 +0,0 @@ -CREATE TABLE google_oauth_tokens ( - id SERIAL PRIMARY KEY, - token VARCHAR NOT NULL, - refresh_token VARCHAR NOT NULL, - expiration TIMESTAMP NOT NULL, - created TIMESTAMP NOT NULL DEFAULT current_timestamp -); - -CREATE INDEX oauth_token_exp_index ON google_oauth_tokens (expiration); -CREATE INDEX oauth_token_created_index ON google_oauth_tokens (created); |
