migration.sql 1.0 KB

12345678910111213141516171819
  1. /*
  2. Warnings:
  3. - You are about to drop the column `name` on the `users` table. All the data in the column will be lost.
  4. - You are about to drop the column `password_hash` on the `users` table. All the data in the column will be lost.
  5. - Added the required column `email` to the `users` table without a default value. This is not possible if the table is not empty.
  6. - Added the required column `firstname` to the `users` table without a default value. This is not possible if the table is not empty.
  7. - Added the required column `lastname` to the `users` table without a default value. This is not possible if the table is not empty.
  8. - Added the required column `password` to the `users` table without a default value. This is not possible if the table is not empty.
  9. */
  10. -- AlterTable
  11. ALTER TABLE "users" DROP COLUMN "name",
  12. DROP COLUMN "password_hash",
  13. ADD COLUMN "email" TEXT NOT NULL,
  14. ADD COLUMN "firstname" TEXT NOT NULL,
  15. ADD COLUMN "lastname" TEXT NOT NULL,
  16. ADD COLUMN "password" TEXT NOT NULL;