Semicolon missing in downgrade file, but it's good in upgrade file.
And downgrade command is not working, I think it's the solution.
upgrade file:
CREATE TABLE "public"."tasks" ("id" bigserial NOT NULL, "server_id" bigint NULL, "image_id" bigint NULL, "name" character varying NOT NULL, "note" character varying NULL, "state" integer NULL DEFAULT 1, "template" jsonb NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, PRIMARY KEY ("id"));
CREATE UNIQUE INDEX "tasks_name_index" ON "public"."tasks" ("name");
downgrade file:
DROP INDEX "public"."tasks_name_index"
DROP TABLE "public"."tasks"