21 lines
1.0 KiB
SQL
21 lines
1.0 KiB
SQL
/*
|
|
Warnings:
|
|
|
|
- A unique constraint covering the columns `[user_id,business_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
- A unique constraint covering the columns `[user_id,provider_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
- A unique constraint covering the columns `[user_id,pos_id]` on the table `accounts` will be added. If there are existing duplicate values, this will fail.
|
|
- Added the required column `name` to the `poses` table without a default value. This is not possible if the table is not empty.
|
|
|
|
*/
|
|
-- AlterTable
|
|
ALTER TABLE `poses` ADD COLUMN `name` VARCHAR(191) NOT NULL;
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX `accounts_user_id_business_id_key` ON `accounts`(`user_id`, `business_id`);
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX `accounts_user_id_provider_id_key` ON `accounts`(`user_id`, `provider_id`);
|
|
|
|
-- CreateIndex
|
|
CREATE UNIQUE INDEX `accounts_user_id_pos_id_key` ON `accounts`(`user_id`, `pos_id`);
|