Files
psp_api/prisma/migrations/20260224080728_init/migration.sql
T

21 lines
707 B
SQL
Raw Normal View History

/*
Warnings:
- You are about to drop the column `description` on the `sales_invoices` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE `customers` MODIFY `type` ENUM('INDIVIDUAL', 'LEGAL', 'UNKNOWN') NOT NULL;
-- AlterTable
ALTER TABLE `sales_invoice_items` ADD COLUMN `notes` TEXT NULL;
-- AlterTable
ALTER TABLE `sales_invoice_payments` MODIFY `payment_method` ENUM('TERMINAL', 'CASH', 'SET_OFF', 'CARD', 'BANK', 'CHECK', 'OTHER') NOT NULL;
-- AlterTable
ALTER TABLE `sales_invoices` DROP COLUMN `description`,
ADD COLUMN `invoice_date` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
ADD COLUMN `notes` TEXT NULL,
ADD COLUMN `unknown_customer` JSON NULL;