Files
advx/prisma/migrations/20250326013839_add_field_limits/migration.sql
T
2025-04-10 23:07:21 -03:00

52 lines
5.1 KiB
SQL

/*
Warnings:
- You are about to alter the column `nome` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `email` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `cpfCnpj` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(18)`.
- You are about to alter the column `telefone` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(20)`.
- You are about to alter the column `endereco` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(150)`.
- You are about to alter the column `bairro` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `cep` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(9)`.
- You are about to alter the column `cidade` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `complemento` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
- You are about to alter the column `conjugeCpf` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(14)`.
- You are about to alter the column `conjugeNome` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `estado` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `Char(2)`.
- You are about to alter the column `estadoCivil` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(20)`.
- You are about to alter the column `instagram` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
- You are about to alter the column `nomeMae` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `nomePai` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `numero` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(10)`.
- You are about to alter the column `orgaoEmissor` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(10)`.
- You are about to alter the column `profissao` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(100)`.
- You are about to alter the column `renda` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Decimal(65,30)` to `Decimal(10,2)`.
- You are about to alter the column `tipoPrevidencia` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(20)`.
- You are about to alter the column `vinculoEmpregaticio` on the `clientes` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(50)`.
*/
-- AlterTable
ALTER TABLE "clientes" ALTER COLUMN "nome" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "email" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "cpfCnpj" SET DATA TYPE VARCHAR(18),
ALTER COLUMN "telefone" SET DATA TYPE VARCHAR(20),
ALTER COLUMN "endereco" SET DATA TYPE VARCHAR(150),
ALTER COLUMN "bairro" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "cep" SET DATA TYPE VARCHAR(9),
ALTER COLUMN "cidade" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "complemento" SET DATA TYPE VARCHAR(50),
ALTER COLUMN "conjugeCpf" SET DATA TYPE VARCHAR(14),
ALTER COLUMN "conjugeNome" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "estado" SET DATA TYPE CHAR(2),
ALTER COLUMN "estadoCivil" SET DATA TYPE VARCHAR(20),
ALTER COLUMN "instagram" SET DATA TYPE VARCHAR(50),
ALTER COLUMN "nomeMae" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "nomePai" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "numero" SET DATA TYPE VARCHAR(10),
ALTER COLUMN "orgaoEmissor" SET DATA TYPE VARCHAR(10),
ALTER COLUMN "profissao" SET DATA TYPE VARCHAR(100),
ALTER COLUMN "renda" SET DATA TYPE DECIMAL(10,2),
ALTER COLUMN "rg" SET DATA TYPE VARCHAR(20),
ALTER COLUMN "tipoPrevidencia" SET DATA TYPE VARCHAR(20),
ALTER COLUMN "vinculoEmpregaticio" SET DATA TYPE VARCHAR(50);