diff --git a/db/migrations/1701179334116-Data.js b/db/migrations/1701263174334-Data.js similarity index 99% rename from db/migrations/1701179334116-Data.js rename to db/migrations/1701263174334-Data.js index ce8aa89e4..24d099c96 100644 --- a/db/migrations/1701179334116-Data.js +++ b/db/migrations/1701263174334-Data.js @@ -1,5 +1,5 @@ -module.exports = class Data1701179334116 { - name = 'Data1701179334116' +module.exports = class Data1701263174334 { + name = 'Data1701263174334' async up(db) { await db.query(`CREATE TABLE "channel_follow" ("id" character varying NOT NULL, "user_id" character varying, "channel_id" text NOT NULL, "timestamp" TIMESTAMP WITH TIME ZONE NOT NULL, CONSTRAINT "PK_9410df2b9a316af3f0d216f9487" PRIMARY KEY ("id"))`) diff --git a/docs/developer-guide/tutorials/updating-schema.md b/docs/developer-guide/tutorials/updating-schema.md index 6178bcc6f..017cb860e 100644 --- a/docs/developer-guide/tutorials/updating-schema.md +++ b/docs/developer-guide/tutorials/updating-schema.md @@ -25,7 +25,7 @@ In order to do that, you'll need to: 4. Re-generate the `*-Data.js` migration inside `db/migrations`: ```bash # First, remove the old migration file(s) - rm db/migrations/*-Data.js + `rm db/migrations/*-Data.js` # Start PostgreSQL database service # Make sure it's an empty database! If the service is already running you should first run: # docker-compose down -v