diff --git a/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql b/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql new file mode 100644 index 0000000..7082aa6 --- /dev/null +++ b/prisma/migrations/20250909132655_refactor_description_to_comment_for_shifts_and_expenses/migration.sql @@ -0,0 +1,24 @@ +/* + Warnings: + + - You are about to drop the column `description` on the `expenses` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `expenses_archive` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `shifts` table. All the data in the column will be lost. + - You are about to drop the column `description` on the `shifts_archive` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "public"."expenses" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."expenses_archive" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."shifts" DROP COLUMN "description", +ADD COLUMN "comment" TEXT; + +-- AlterTable +ALTER TABLE "public"."shifts_archive" DROP COLUMN "description", +ADD COLUMN "comment" TEXT;