Add populate script and artist api

This commit is contained in:
Zoe Roux
2022-10-25 02:15:19 +09:00
committed by Bluub
parent 72be838324
commit 89dbee0b17
22 changed files with 461 additions and 104 deletions
@@ -0,0 +1,10 @@
/*
Warnings:
- Added the required column `midiPath` to the `Song` table without a default value. This is not possible if the table is not empty.
- Added the required column `musicXmlPath` to the `Song` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Song" ADD COLUMN "midiPath" TEXT NOT NULL,
ADD COLUMN "musicXmlPath" TEXT NOT NULL;
@@ -0,0 +1,8 @@
/*
Warnings:
- A unique constraint covering the columns `[name]` on the table `Album` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Album_name_key" ON "Album"("name");
@@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[name]` on the table `Artist` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[name]` on the table `Genre` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX "Artist_name_key" ON "Artist"("name");
-- CreateIndex
CREATE UNIQUE INDEX "Genre_name_key" ON "Genre"("name");