diff --git a/.travis.yml b/.travis.yml index 5cce71d042..25cb4a535a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,27 +51,27 @@ jobs: packages: - libc6-i386 - libstdc++6:i386 - - env: - - DoxGeneration=false - - DockerBuild=false - - DMAPI=false - - CONFIG=Release - - TGS4_TEST_DATABASE_TYPE=PostgresSql - - TGS4_TEST_CONNECTION_STRING="Application Name=tgstation-server;Host=127.0.0.1;Username=postgres;Password=;Database=TGS_Test" - name: "PostgresSql Integration Test" - language: csharp - mono: none - dotnet: 3.1 - services: - - postgresql - cache: - directories: - - $HOME/.nuget/packages: - addons: - apt: - packages: - - libc6-i386 - - libstdc++6:i386 +# - env: +# - DoxGeneration=false +# - DockerBuild=false +# - DMAPI=false +# - CONFIG=Release +# - TGS4_TEST_DATABASE_TYPE=PostgresSql +# - TGS4_TEST_CONNECTION_STRING="Application Name=tgstation-server;Host=127.0.0.1;Username=postgres;Password=;Database=TGS_Test" +# name: "PostgresSql Integration Test" +# language: csharp +# mono: none +# dotnet: 3.1 +# services: +# - postgresql +# cache: +# directories: +# - $HOME/.nuget/packages: +# addons: +# apt: +# packages: +# - libc6-i386 +# - libstdc++6:i386 - env: - DoxGeneration=false - DockerBuild=false diff --git a/src/Tgstation.Server.Host/Database/PostgresSqlDatabaseContext.cs b/src/Tgstation.Server.Host/Database/PostgresSqlDatabaseContext.cs index 50a79cc630..de020b3653 100644 --- a/src/Tgstation.Server.Host/Database/PostgresSqlDatabaseContext.cs +++ b/src/Tgstation.Server.Host/Database/PostgresSqlDatabaseContext.cs @@ -37,6 +37,9 @@ namespace Tgstation.Server.Host.Database /// protected override void ValidateDatabaseType() { + if (!Debugger.IsAttached) + throw new NotImplementedException("PostgresSQL implementation is not complete yet!"); + if (DatabaseType != DatabaseType.PostgresSql) throw new InvalidOperationException("Invalid DatabaseType for SqliteDatabaseContext!"); }