Skip to content

Commit dc7ec73

Browse files
committed
fixes
1 parent f26c754 commit dc7ec73

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

api-server/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

api-server/source/migrations/003-create-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
});

0 commit comments

Comments
 (0)