Skip to content

Commit 1fe2deb

Browse files
authored
extend access token (#102)
* elixir 18 * migrate access token field
1 parent 219130e commit 1fe2deb

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

.github/workflows/elixir.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
container:
17-
image: elixir:1.17-alpine
17+
image: elixir:1.18-alpine
1818

1919
services:
2020
postgres:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Remmber to bump .github worflow as well
2-
FROM elixir:1.17-alpine AS build
2+
FROM elixir:1.18-alpine AS build
33
RUN apk update \
44
&& apk add --virtual build-dependencies \
55
build-base

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule PR.MixProject do
55
[
66
app: :pr,
77
version: "0.1.0",
8-
elixir: "~> 1.17.0",
8+
elixir: "~> 1.18.0",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
start_permanent: Mix.env() == :prod,
1111
aliases: aliases(),
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
defmodule PR.Repo.Migrations.LongerAccessToken do
2+
use Ecto.Migration
3+
4+
def up do
5+
alter table(:tokens) do
6+
modify :access_token, :text
7+
modify :refresh_token, :text
8+
end
9+
end
10+
11+
def down do
12+
alter table(:tokens) do
13+
modify :access_token, :string, size: 255
14+
modify :refresh_token, :string, size: 255
15+
end
16+
end
17+
end

0 commit comments

Comments
 (0)