migration.sql 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. Warnings:
  3. - You are about to drop the column `createdAt` on the `users` table. All the data in the column will be lost.
  4. - You are about to drop the column `deletedAt` on the `users` table. All the data in the column will be lost.
  5. - You are about to drop the column `email` on the `users` table. All the data in the column will be lost.
  6. - You are about to drop the column `firstname` on the `users` table. All the data in the column will be lost.
  7. - You are about to drop the column `lastname` on the `users` table. All the data in the column will be lost.
  8. - You are about to drop the column `password` on the `users` table. All the data in the column will be lost.
  9. - You are about to drop the column `role` on the `users` table. All the data in the column will be lost.
  10. - You are about to drop the column `updatedAt` on the `users` table. All the data in the column will be lost.
  11. - You are about to drop the column `username` on the `users` table. All the data in the column will be lost.
  12. */
  13. -- DropForeignKey
  14. ALTER TABLE "status_histories" DROP CONSTRAINT "status_histories_user_id_fkey";
  15. -- DropForeignKey
  16. ALTER TABLE "vendors" DROP CONSTRAINT "vendors_created_by_fkey";
  17. -- AlterTable
  18. ALTER TABLE "users" DROP COLUMN "createdAt",
  19. DROP COLUMN "deletedAt",
  20. DROP COLUMN "email",
  21. DROP COLUMN "firstname",
  22. DROP COLUMN "lastname",
  23. DROP COLUMN "password",
  24. DROP COLUMN "role",
  25. DROP COLUMN "updatedAt",
  26. DROP COLUMN "username",
  27. ADD COLUMN "fullname" TEXT NOT NULL DEFAULT 'unknown';