aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-19 11:24:13 +0100
committerChocobozzz <me@florianbigard.com>2017-12-19 11:25:20 +0100
commitc4bc85003fd0dd430f68c775f5f0a032538600e2 (patch)
treea62af28acbf4c859c0ac7d3a12b70fdadc8a8cce
parent3ae6376abee7c0ec5d74414d471b02e01ec53af8 (diff)
downloadPeerTube-c4bc85003fd0dd430f68c775f5f0a032538600e2.tar.gz
PeerTube-c4bc85003fd0dd430f68c775f5f0a032538600e2.tar.zst
PeerTube-c4bc85003fd0dd430f68c775f5f0a032538600e2.zip
Fix migration scripts
-rw-r--r--.travis.yml1
-rw-r--r--server/initializers/constants.ts2
-rw-r--r--server/initializers/migrations/0135-video-channel-actor.ts (renamed from server/initializers/migrations/0130-video-channel-actor.ts)1
3 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 535b2b6b0..d71d2f212 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,6 +5,7 @@ node_js:
5 5
6env: 6env:
7 - CXX=g++-4.9 7 - CXX=g++-4.9
8 - CC=gcc-4.9
8 9
9addons: 10addons:
10 apt: 11 apt:
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 4cb54dc93..2ea2aa6b9 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -9,7 +9,7 @@ import { isTestInstance, root } from '../helpers/core-utils'
9 9
10// --------------------------------------------------------------------------- 10// ---------------------------------------------------------------------------
11 11
12const LAST_MIGRATION_VERSION = 130 12const LAST_MIGRATION_VERSION = 135
13 13
14// --------------------------------------------------------------------------- 14// ---------------------------------------------------------------------------
15 15
diff --git a/server/initializers/migrations/0130-video-channel-actor.ts b/server/initializers/migrations/0135-video-channel-actor.ts
index fab77cf4a..3c5c10ad6 100644
--- a/server/initializers/migrations/0130-video-channel-actor.ts
+++ b/server/initializers/migrations/0135-video-channel-actor.ts
@@ -10,6 +10,7 @@ async function up (utils: {
10 // Create actor table 10 // Create actor table
11 { 11 {
12 const queries = [ 12 const queries = [
13 `DROP TYPE IF EXISTS enum_actor_type`,
13 ` 14 `
14 CREATE TYPE enum_actor_type AS ENUM ( 15 CREATE TYPE enum_actor_type AS ENUM (
15 'Group', 16 'Group',