Skip to content

Commit

Permalink
Merge pull request #119 from Facts-and-Files/feat/changeTranscription…
Browse files Browse the repository at this point in the history
…SourceEnum

feat: add occam to Items TranscriptionSource enum as new value
  • Loading branch information
trenc authored Sep 4, 2024
2 parents a02e91a + d0e6b4b commit 69794bb
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: until ping -c1 "$HOST"; do sleep 2; done

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare files
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: until ping -c1 "$HOST"; do sleep 2; done

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare files
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: until ping -c1 "$HOST"; do sleep 2; done

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Prepare files
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

return new class extends Migration
{
public function up(): void
{
DB::statement("ALTER TABLE Item MODIFY TranscriptionSource ENUM('manual','htr','occam') DEFAULT 'manual'");
}

public function down(): void
{
DB::statement("ALTER TABLE Item MODIFY TranscriptionSource ENUM('manual','htr') DEFAULT 'manual'");
}
};
2 changes: 1 addition & 1 deletion src/storage/api-docs/api-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3

info:
version: 1.48.0
version: 1.49.0
title: Transcribathon Platform API v2
description: This is the documentation of the Transcribathon API v2 used by [https:transcribathon.eu](https://transcribathon.eu/).<br />
For authorization you can use the the bearer token you are provided with.
Expand Down
2 changes: 1 addition & 1 deletion src/storage/api-docs/items-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ItemsMinimalReferenceSchema:
properties:
TranscriptionSource:
type: string
enum: ['htr', 'manual']
enum: ['htr', 'manual', 'occam']
description: source of the transcription
example: 'manual'
Title:
Expand Down

0 comments on commit 69794bb

Please sign in to comment.