this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ops: apply migrations

Clément de4cf272 23ff9d3d

+31 -5
+27 -1
.github/workflows/backend.yml
··· 49 49 exit 1 50 50 fi 51 51 52 + migrations: 53 + name: Check migrations 54 + runs-on: ubuntu-latest 55 + 56 + steps: 57 + - name: Checkout sources 58 + uses: actions/checkout@v6 59 + 60 + - name: Run migrations locally 61 + uses: cloudflare/wrangler-action@v3 62 + with: 63 + command: d1 migrations apply uiua-database --local 64 + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 65 + workingDirectory: backend 66 + wranglerVersion: 4.62.0 67 + environment: "" 68 + 52 69 deploy: 53 70 name: Build & deploy 54 71 runs-on: ubuntu-latest 55 - needs: check 72 + needs: [check, migrations] 56 73 57 74 steps: 58 75 - name: Checkout sources ··· 63 80 with: 64 81 go-version-file: backend/go.mod 65 82 cache-dependency-path: backend/go.sum 83 + 84 + - name: Migrations 85 + uses: cloudflare/wrangler-action@v3 86 + with: 87 + command: d1 migrations apply uiua-database --remote 88 + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 89 + workingDirectory: backend 90 + wranglerVersion: 4.62.0 91 + environment: "" 66 92 67 93 - name: Deploy 68 94 uses: cloudflare/wrangler-action@v3
+4 -4
backend/migrations/20250204_inital.sql
··· 1 1 create table users ( 2 - id uuid primary key default uuid_generate_v4 (), 2 + id uuid primary key, 3 3 email text not null unique, 4 4 password text not null, 5 - created_at timestamp default now () 5 + created_at timestamp default now 6 6 ); 7 7 8 8 create table session ( 9 - id uuid primary key default uuid_generate_v4 (), 9 + id uuid primary key, 10 10 user_id uuid references users (id) on delete cascade, 11 11 token text not null unique, 12 - created_at timestamp default now () 12 + created_at timestamp default now 13 13 );