func(session): add migration for adding ip column

This commit is contained in:
eagleon 2024-09-19 10:31:40 +08:00
parent f89c08b007
commit e1689c95a4
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `session` ADD COLUMN `ip` VARCHAR(100) NULL;

View file

@ -0,0 +1,8 @@
/*
Warnings:
- You are about to alter the column `ip` on the `session` table. The data in that column could be lost. The data in that column will be cast from `VarChar(255)` to `VarChar(100)`.
*/
-- AlterTable
ALTER TABLE "session" ALTER COLUMN "ip" SET DATA TYPE VARCHAR(100);