-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from GodUser1005/develop
fix: Session 테이블 수정 및 마이그레이션 파일 추가
- Loading branch information
Showing
2 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
prisma/migrations/20250121060755_session_table_update/migration.sql
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,20 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `user_id` on the `session` table. All the data in the column will be lost. | ||
- A unique constraint covering the columns `[sid]` on the table `session` will be added. If there are existing duplicate values, this will fail. | ||
- Made the column `expires_at` on table `session` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE `session` DROP FOREIGN KEY `session_user_id_fkey`; | ||
|
||
-- DropIndex | ||
DROP INDEX `session_user_id_fkey` ON `session`; | ||
|
||
-- AlterTable | ||
ALTER TABLE `session` DROP COLUMN `user_id`, | ||
MODIFY `expires_at` TIMESTAMP(3) NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX `session_sid_key` ON `session`(`sid`); |
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