Direct database deletes should still cascade to avoid orphaned records. The migration now only adds the three deleted_at columns without touching the existing FK constraints.
9 lines
338 B
SQL
9 lines
338 B
SQL
-- AlterTable: add deleted_at column to clients
|
|
ALTER TABLE "clients" ADD COLUMN "deleted_at" TIMESTAMP(3);
|
|
|
|
-- AlterTable: add deleted_at column to projects
|
|
ALTER TABLE "projects" ADD COLUMN "deleted_at" TIMESTAMP(3);
|
|
|
|
-- AlterTable: add deleted_at column to time_entries
|
|
ALTER TABLE "time_entries" ADD COLUMN "deleted_at" TIMESTAMP(3);
|