/* Warnings: - You are about to drop the column `vendor` on the `licenses` table. All the data in the column will be lost. - Added the required column `vendor_id` to the `licenses` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "licenses" DROP COLUMN "vendor", ADD COLUMN "vendor_id" UUID NOT NULL; -- AddForeignKey ALTER TABLE "licenses" ADD CONSTRAINT "licenses_vendor_id_fkey" FOREIGN KEY ("vendor_id") REFERENCES "vendors"("id") ON DELETE RESTRICT ON UPDATE CASCADE;