From c4bc85003fd0dd430f68c775f5f0a032538600e2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Dec 2017 11:24:13 +0100 Subject: [PATCH] Fix migration scripts --- .travis.yml | 1 + server/initializers/constants.ts | 2 +- ...{0130-video-channel-actor.ts => 0135-video-channel-actor.ts} | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename server/initializers/migrations/{0130-video-channel-actor.ts => 0135-video-channel-actor.ts} (99%) diff --git a/.travis.yml b/.travis.yml index 535b2b6b0..d71d2f212 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ node_js: env: - CXX=g++-4.9 + - CC=gcc-4.9 addons: 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' // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 130 +const LAST_MIGRATION_VERSION = 135 // --------------------------------------------------------------------------- diff --git a/server/initializers/migrations/0130-video-channel-actor.ts b/server/initializers/migrations/0135-video-channel-actor.ts similarity index 99% rename from server/initializers/migrations/0130-video-channel-actor.ts rename to 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: { // Create actor table { const queries = [ + `DROP TYPE IF EXISTS enum_actor_type`, ` CREATE TYPE enum_actor_type AS ENUM ( 'Group', -- 2.25.1