From e7b5b55f6718b25a437a891a06a26c21384b6818 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 18 Jan 2023 20:15:12 +0100 Subject: Add format column to post tables --- src/post/sql.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/post/sql.go') diff --git a/src/post/sql.go b/src/post/sql.go index 786ea63..c7b726f 100644 --- a/src/post/sql.go +++ b/src/post/sql.go @@ -66,6 +66,13 @@ var migrations = &migrate.MemoryMigrationSource{Migrations: []*migrate.Migration `ALTER TABLE posts DROP COLUMN description_old`, }, }, + { + Id: "4", + Up: []string{ + `ALTER TABLE post_drafts ADD COLUMN format TEXT DEFAULT 'md'`, + `ALTER TABLE posts ADD COLUMN format TEXT DEFAULT 'md'`, + }, + }, }} // SQLDB is a sqlite3 database which can be used by storage interfaces within -- cgit v1.2.3