File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This file documents changes to the Deconf API Server.
44
55## 0.1.2
66
7- - ** new** Stage and diff assets during upsert-schedule
7+ - ** new** Stage and diff assets during upsert-schedule & link them to people
88
99## 0.1.1
1010
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default definePostgresMigration({
66 CREATE TABLE "assets" (
77 "id" SERIAL PRIMARY KEY,
88 "created_at" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
9- "title" VARCHAR(64) NOT NULL,
9+ "title" JSONB NOT NULL,
1010 "url" VARCHAR(64) NOT NULL,
1111 "conference_id" INTEGER NOT NULL REFERENCES "conferences" (id) ON DELETE CASCADE,
1212 "metadata" JSONB NOT NULL DEFAULT '{}'::JSONB
Original file line number Diff line number Diff line change 1+ import { definePostgresMigration } from "gruber" ;
2+
3+ export default definePostgresMigration ( {
4+ async up ( sql ) {
5+ await sql `
6+ ALTER TABLE "assets"
7+ ALTER COLUMN url TYPE VARCHAR(255);
8+ ` ;
9+ } ,
10+ async down ( sql ) {
11+ // don't alter it back
12+ } ,
13+ } ) ;
You can’t perform that action at this time.
0 commit comments