 6a211dd5b3
			
		
	
	
		6a211dd5b3
		
			
		
	
	
	
	
		
			
			* Concluded merge * Applied stash to newly merged * Always disconnect + remove redundant success message * Added named dialog to replace new=1 * Merged with main p2 * Set eventTypeId to @unique * WIP * Undo vscode changes * Availability dropdown works * Remove console.log + set schedule to null as it is unneeded * Added schedule to availability endpoint * Reduce one refresh; hotfix state inconsistency with forced refresh for now * Add missing translations * Fixed some type errors I missed * Ditch outdated remnant from before packages/prisma * Remove Availability section for teams * Bringing back the Availability section temporarily to teams to allow configuration * Migrated getting-started to new availability system + updated translations + updated seed * Fixed type error coming from main * Titlecase 'default' by providing translation * Fixed broken 'radio' buttons. * schedule deleted translation added * Added empty state for when no schedules are configured * Added correct created message + hotfix reload hard on delete to refresh state * Removed index renames * Type fixes * Update NewScheduleButton.tsx Co-authored-by: zomars <zomars@me.com> Co-authored-by: Bailey Pumfleet <pumfleet@hey.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			SQL
		
	
	
	
	
	
| /*
 | |
|   Warnings:
 | |
| 
 | |
|   - You are about to drop the column `label` on the `Availability` table. All the data in the column will be lost.
 | |
|   - You are about to drop the column `freeBusyTimes` on the `Schedule` table. All the data in the column will be lost.
 | |
|   - You are about to drop the column `title` on the `Schedule` table. All the data in the column will be lost.
 | |
|   - A unique constraint covering the columns `[eventTypeId]` on the table `Schedule` will be added. If there are existing duplicate values, this will fail.
 | |
|   - Added the required column `name` to the `Schedule` table without a default value. This is not possible if the table is not empty.
 | |
|   - Made the column `userId` on table `Schedule` required. This step will fail if there are existing NULL values in that column.
 | |
| 
 | |
| */
 | |
| -- AlterTable
 | |
| ALTER TABLE "Availability" DROP COLUMN "label",
 | |
| ADD COLUMN     "scheduleId" INTEGER;
 | |
| 
 | |
| -- AlterTable
 | |
| ALTER TABLE "Schedule" DROP COLUMN "freeBusyTimes",
 | |
| DROP COLUMN "title",
 | |
| ADD COLUMN     "name" TEXT NOT NULL,
 | |
| ADD COLUMN     "timeZone" TEXT,
 | |
| ALTER COLUMN "userId" SET NOT NULL;
 | |
| 
 | |
| -- AlterTable
 | |
| ALTER TABLE "users" ADD COLUMN     "defaultScheduleId" INTEGER;
 | |
| 
 | |
| -- CreateIndex
 | |
| CREATE UNIQUE INDEX "Schedule_eventTypeId_key" ON "Schedule"("eventTypeId");
 | |
| 
 | |
| -- AddForeignKey
 | |
| ALTER TABLE "Availability" ADD CONSTRAINT "Availability_scheduleId_fkey" FOREIGN KEY ("scheduleId") REFERENCES "Schedule"("id") ON DELETE SET NULL ON UPDATE CASCADE;
 |