Skip to content

Commit eae5852

Browse files
New migration for jobsource cahnges.
1 parent 57cf158 commit eae5852

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the `job_sources` table. If the table is not empty, all the data it contains will be lost.
5+
6+
*/
7+
-- DropForeignKey
8+
ALTER TABLE "job_sources" DROP CONSTRAINT "job_sources_job_id_fkey";
9+
10+
-- AlterTable
11+
ALTER TABLE "jobs" ADD COLUMN "data" JSONB,
12+
ADD COLUMN "external_id" TEXT,
13+
ADD COLUMN "source" TEXT;
14+
15+
-- DropTable
16+
DROP TABLE "job_sources";
17+
18+
-- CreateIndex
19+
CREATE INDEX "jobs_source_external_id_idx" ON "jobs"("source", "external_id");

migrations/migration_lock.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Please do not edit this file manually
2+
# It should be added in your version-control system (e.g., Git)
3+
provider = "postgresql"

0 commit comments

Comments
 (0)