-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83e5586
commit e85f0a0
Showing
16 changed files
with
95 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,35 +8,17 @@ on: | |
|
||
jobs: | ||
test: | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-22.04, macos-14] | ||
# runs-on: ${{ matrix.os }} | ||
runs-on: macos-14 | ||
steps: | ||
# https://github.com/actions/runner-images/issues/9330 | ||
- name: Allow microphone access to all apps (macOS) | ||
# if: matrix.os == 'macos-14' | ||
- name: Allow microphone access to all apps | ||
run: | | ||
sqlite3 $HOME/Library/Application\ Support/com.apple.TCC/TCC.db "INSERT OR IGNORE INTO access VALUES ('kTCCServiceMicrophone','/usr/local/opt/runner/provisioner/provisioner',1,2,4,1,NULL,NULL,0,'UNUSED',NULL,0,1687786159,NULL,NULL,'UNUSED',1687786159);" | ||
# - name: Set up PulseAudio (Ubuntu) | ||
# if: matrix.os == 'ubuntu-22.04' | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y pulseaudio | ||
# systemctl --user start pulseaudio.socket | ||
|
||
- name: Install MySQL (macOS) | ||
# if: matrix.os == 'macos-14' | ||
- name: Install PostgreSQL | ||
run: | | ||
brew install mysql | ||
brew services start mysql | ||
# - name: Start MySQL (Ubuntu) | ||
# if: matrix.os == 'ubuntu-22.04' | ||
# run: sudo systemctl start mysql | ||
brew install postgresql@16 | ||
brew services start postgresql@16 | ||
- name: Check out repository | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
@@ -57,10 +39,7 @@ jobs: | |
env: | ||
CLERK_PUBLISHABLE_KEY: ${{ secrets.CLERK_PUBLISHABLE_KEY }} | ||
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }} | ||
# On macOS (installed via Homebrew), the MySQL root password is empty by default | ||
# On Ubuntu (included in runner image), the MySQL root password is "root" by default | ||
# DATABASE_URL: mysql://root:${{ matrix.os == 'ubuntu-22.04' && 'root' || '' }}@localhost:3306/festival | ||
DATABASE_URL: mysql://root:@localhost:3306/festival | ||
DATABASE_URL: postgresql://runner:@localhost:5432/postgres | ||
FIRST_ADMIN_EMAIL_ADDRESS: [email protected] | ||
PORT: '3000' | ||
TIGRIS_ACCESS_KEY_ID: ${{ secrets.TIGRIS_ACCESS_KEY_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
prisma/migrations/20231222231128_cascade_audio_file_delete/migration.sql
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
prisma/migrations/20240702043959_rename_file/migration.sql
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
prisma/migrations/20240705025323_remove_audio_file_upload/migration.sql
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
prisma/migrations/20240705172845_set_optional_data/migration.sql
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
prisma/migrations/20240705180756_show_optional_data/migration.sql
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
prisma/migrations/20240706000913_require_time_zone/migration.sql
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
prisma/migrations/20250223003001_start_date_string/migration.sql
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
-- CreateEnum | ||
CREATE TYPE "AudioFileConversionStatus" AS ENUM ('USER_UPLOAD', 'CHECKING', 'CONVERTING', 'RE_UPLOAD', 'DONE', 'ERROR'); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Show" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"slug" TEXT NOT NULL, | ||
"description" TEXT, | ||
"startDate" TEXT, | ||
"timeZone" TEXT NOT NULL, | ||
"backgroundColor" TEXT, | ||
"backgroundColorSecondary" TEXT, | ||
"logoImageFileId" TEXT, | ||
"backgroundImageFileId" TEXT, | ||
|
||
CONSTRAINT "Show_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Set" ( | ||
"id" TEXT NOT NULL, | ||
"artist" TEXT, | ||
"offset" DOUBLE PRECISION, | ||
"showId" TEXT NOT NULL, | ||
"audioFileId" TEXT, | ||
|
||
CONSTRAINT "Set_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "AudioFile" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"url" TEXT NOT NULL, | ||
"duration" DOUBLE PRECISION, | ||
"conversionStatus" "AudioFileConversionStatus" NOT NULL, | ||
"conversionProgress" DOUBLE PRECISION, | ||
"errorMessage" TEXT, | ||
|
||
CONSTRAINT "AudioFile_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "ImageFile" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"url" TEXT NOT NULL, | ||
|
||
CONSTRAINT "ImageFile_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "AdminUserAllowlist" ( | ||
"emailAddress" TEXT NOT NULL | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Show_slug_key" ON "Show"("slug"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Show_logoImageFileId_key" ON "Show"("logoImageFileId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Show_backgroundImageFileId_key" ON "Show"("backgroundImageFileId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Set_audioFileId_key" ON "Set"("audioFileId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "AdminUserAllowlist_emailAddress_key" ON "AdminUserAllowlist"("emailAddress"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Show" ADD CONSTRAINT "Show_logoImageFileId_fkey" FOREIGN KEY ("logoImageFileId") REFERENCES "ImageFile"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Show" ADD CONSTRAINT "Show_backgroundImageFileId_fkey" FOREIGN KEY ("backgroundImageFileId") REFERENCES "ImageFile"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Set" ADD CONSTRAINT "Set_showId_fkey" FOREIGN KEY ("showId") REFERENCES "Show"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Set" ADD CONSTRAINT "Set_audioFileId_fkey" FOREIGN KEY ("audioFileId") REFERENCES "AudioFile"("id") ON DELETE SET NULL ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Please do not edit this file manually | ||
# It should be added in your version-control system (i.e. Git) | ||
provider = "mysql" | ||
# It should be added in your version-control system (e.g., Git) | ||
provider = "postgresql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters