687012d1a0
* Generate API key in settings * Check x-api-key for GraphQL API requests * Don't fallback to cookie if x-api-key header was provided * Select all session fields * Fix error if API key not found * Fix style in settings via form-label className --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
13 lines
379 B
SQL
13 lines
379 B
SQL
/*
|
|
Warnings:
|
|
|
|
- A unique constraint covering the columns `[apiKey]` on the table `users` will be added. If there are existing duplicate values, this will fail.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE "users" ADD COLUMN "apiKey" CHAR(32),
|
|
ADD COLUMN "apiKeyEnabled" BOOLEAN NOT NULL DEFAULT false;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX "users.apikey_unique" ON "users"("apiKey");
|