mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Added access_code column to teams.
This commit is contained in:
parent
dff105c747
commit
aef7326f4c
3 changed files with 40 additions and 8 deletions
27
db/postgresql/migrations/02_add_access_code/migration.sql
Normal file
27
db/postgresql/migrations/02_add_access_code/migration.sql
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to alter the column `share_id` on the `website` table. The data in that column could be lost. The data in that column will be cast from `VarChar(64)` to `VarChar(50)`.
|
||||
- A unique constraint covering the columns `[access_code]` on the table `team` will be added. If there are existing duplicate values, this will fail.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "team" ADD COLUMN "access_code" VARCHAR(50);
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "website" ALTER COLUMN "share_id" SET DATA TYPE VARCHAR(50);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "team_access_code_key" ON "team"("access_code");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "team_user_id_idx" ON "team"("user_id");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "team_access_code_idx" ON "team"("access_code");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "team_user_team_id_idx" ON "team_user"("team_id");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "team_user_user_id_idx" ON "team_user"("user_id");
|
||||
Loading…
Add table
Add a link
Reference in a new issue