mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
func(session): add migration for adding ip column
This commit is contained in:
parent
f89c08b007
commit
e1689c95a4
2 changed files with 10 additions and 0 deletions
2
db/mysql/migrations/07_add_ip/migration.sql
Normal file
2
db/mysql/migrations/07_add_ip/migration.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE `session` ADD COLUMN `ip` VARCHAR(100) NULL;
|
||||||
8
db/postgresql/migrations/07_add_ip/migration.sql
Normal file
8
db/postgresql/migrations/07_add_ip/migration.sql
Normal 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);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue