mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
update schema file and add migrations
This commit is contained in:
parent
5df49e9273
commit
a6a73db9c4
4 changed files with 44 additions and 32 deletions
17
db/mysql/migrations/04_team_redesign/migration.sql
Normal file
17
db/mysql/migrations/04_team_redesign/migration.sql
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the `team_website` table. If the table is not empty, all the data it contains will be lost.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE `team` ADD COLUMN `deleted_at` TIMESTAMP(0) NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE `website` ADD COLUMN `team_id` VARCHAR(36) NULL;
|
||||
|
||||
-- DropTable
|
||||
DROP TABLE `team_website`;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX `website_team_id_idx` ON `website`(`team_id`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue