mirror of https://github.com/TZGyn/shortener
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
321 B
SQL
4 lines
321 B
SQL
ALTER TABLE "session" RENAME COLUMN "token" TO "id";--> statement-breakpoint
|
|
ALTER TABLE "session" RENAME COLUMN "expires" TO "expires_at";--> statement-breakpoint
|
|
ALTER TABLE "session" ADD PRIMARY KEY ("id");--> statement-breakpoint
|
|
ALTER TABLE "session" ALTER COLUMN "expires_at" SET DATA TYPE timestamp with time zone; |