mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 08:28:35 +02:00
Force guest user (#210)
This commit is contained in:
parent
000d105983
commit
1d768083ee
17 changed files with 111 additions and 146 deletions
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `guest_id` on the `comments` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `guest_id` on the `participants` table. All the data in the column will be lost.
|
||||
|
||||
*/
|
||||
-- Set user_id to guest_id
|
||||
UPDATE "comments"
|
||||
SET "user_id" = "guest_id"
|
||||
WHERE "user_id" IS NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "comments" DROP COLUMN "guest_id";
|
||||
|
||||
-- Set user_id to guest_id
|
||||
UPDATE "participants"
|
||||
SET "user_id" = "guest_id"
|
||||
WHERE "user_id" IS NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "participants" DROP COLUMN "guest_id";
|
Loading…
Add table
Add a link
Reference in a new issue