some api routes
This commit is contained in:
		
							parent
							
								
									6591e0987f
								
							
						
					
					
						commit
						6e58f59274
					
				
					 39 changed files with 324 additions and 21 deletions
				
			
		
							
								
								
									
										22
									
								
								prisma/migrations/20220410173021_/migration.sql
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								prisma/migrations/20220410173021_/migration.sql
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| /* | ||||
|   Warnings: | ||||
| 
 | ||||
|   - You are about to drop the column `discordId` on the `ApplicationUserData` table. All the data in the column will be lost. | ||||
|   - Added the required column `userId` to the `ApplicationUserData` table without a default value. This is not possible if the table is not empty. | ||||
| 
 | ||||
| */ | ||||
| -- RedefineTables | ||||
| PRAGMA foreign_keys=OFF; | ||||
| CREATE TABLE "new_ApplicationUserData" ( | ||||
|     "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||||
|     "userId" TEXT NOT NULL, | ||||
|     "borderUrl" TEXT, | ||||
|     "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||||
|     "updatedAt" DATETIME NOT NULL | ||||
| ); | ||||
| INSERT INTO "new_ApplicationUserData" ("borderUrl", "createdAt", "id", "updatedAt") SELECT "borderUrl", "createdAt", "id", "updatedAt" FROM "ApplicationUserData"; | ||||
| DROP TABLE "ApplicationUserData"; | ||||
| ALTER TABLE "new_ApplicationUserData" RENAME TO "ApplicationUserData"; | ||||
| CREATE UNIQUE INDEX "ApplicationUserData_userId_key" ON "ApplicationUserData"("userId"); | ||||
| PRAGMA foreign_key_check; | ||||
| PRAGMA foreign_keys=ON; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue