1234567891011121314151617181920212223242526272829303132 |
- /*
- Warnings:
- - You are about to drop the column `createdAt` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `deletedAt` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `email` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `firstname` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `lastname` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `password` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `role` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `updatedAt` on the `users` table. All the data in the column will be lost.
- - You are about to drop the column `username` on the `users` table. All the data in the column will be lost.
- */
- -- DropForeignKey
- ALTER TABLE "status_histories" DROP CONSTRAINT "status_histories_user_id_fkey";
- -- DropForeignKey
- ALTER TABLE "vendors" DROP CONSTRAINT "vendors_created_by_fkey";
- -- AlterTable
- ALTER TABLE "users" DROP COLUMN "createdAt",
- DROP COLUMN "deletedAt",
- DROP COLUMN "email",
- DROP COLUMN "firstname",
- DROP COLUMN "lastname",
- DROP COLUMN "password",
- DROP COLUMN "role",
- DROP COLUMN "updatedAt",
- DROP COLUMN "username",
- ADD COLUMN "fullname" TEXT NOT NULL DEFAULT 'unknown';
|