add missing migration; this needs to be run before upgrading.

This commit is contained in:
jasper 2015-07-28 07:05:37 +00:00
parent f076127bab
commit 64654c6012
3 changed files with 12 additions and 2 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.19 2015/07/26 21:30:13 jasper Exp $
# $OpenBSD: Makefile,v 1.20 2015/07/28 07:05:37 jasper Exp $
COMMENT= OpenBSD ports distfile version scanner
GH_ACCOUNT= jasperla
GH_PROJECT= portroach
GH_TAGNAME= 2.0.6
REVISION= 0
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME}
CATEGORIES= misc

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-sql_migrations_pgsql_2_0_6_sql,v 1.1 2015/07/28 07:05:37 jasper Exp $
--- sql/migrations/pgsql_2.0.6.sql.orig Tue Jul 28 09:04:48 2015
+++ sql/migrations/pgsql_2.0.6.sql Tue Jul 28 09:05:01 2015
@@ -0,0 +1,4 @@
+-- Migration for 2.0.6
+ALTER TABLE portdata ADD COLUMN homepage text;
+
+UPDATE portroach SET dbver = '2015072601';

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.9 2015/06/23 07:10:17 jasper Exp $
@comment $OpenBSD: PLIST,v 1.10 2015/07/28 07:05:37 jasper Exp $
@pkgpath misc/portscout
bin/portroach
${P5SITE}/Portroach/
@ -41,6 +41,7 @@ share/portroach/sql/
share/portroach/sql/migrations/
share/portroach/sql/migrations/pgsql_2.0.3.sql
share/portroach/sql/migrations/pgsql_2.0.4.sql
share/portroach/sql/migrations/pgsql_2.0.6.sql
share/portroach/sql/pgsql_destroy.sql
share/portroach/sql/pgsql_init.sql
share/portroach/sql/sqlite_destroy.sql