add missing index

This commit is contained in:
Benjamin Gamard 2018-03-31 22:53:49 +02:00
parent b3349176d9
commit 90a3d7aa68
6 changed files with 20 additions and 18 deletions

View File

@ -3,28 +3,28 @@ package com.sismics.util;
/** /**
* Environment properties utilities. * Environment properties utilities.
* *
* @author jtremeaux * @author jtremeaux
*/ */
public class EnvironmentUtil { public class EnvironmentUtil {
private static String OS = System.getProperty("os.name").toLowerCase(); private static String OS = System.getProperty("os.name").toLowerCase();
private static String APPLICATION_MODE = System.getProperty("application.mode"); private static String APPLICATION_MODE = System.getProperty("application.mode");
private static String WINDOWS_APPDATA = System.getenv("APPDATA"); private static String WINDOWS_APPDATA = System.getenv("APPDATA");
private static String MAC_OS_USER_HOME = System.getProperty("user.home"); private static String MAC_OS_USER_HOME = System.getProperty("user.home");
private static String DOCS_HOME = System.getProperty("docs.home"); private static String DOCS_HOME = System.getProperty("docs.home");
/** /**
* In a web application context. * In a web application context.
*/ */
private static boolean webappContext; private static boolean webappContext;
/** /**
* Returns true if running under Microsoft Windows. * Returns true if running under Microsoft Windows.
* *
* @return Running under Microsoft Windows * @return Running under Microsoft Windows
*/ */
public static boolean isWindows() { public static boolean isWindows() {
@ -33,7 +33,7 @@ public class EnvironmentUtil {
/** /**
* Returns true if running under Mac OS. * Returns true if running under Mac OS.
* *
* @return Running under Mac OS * @return Running under Mac OS
*/ */
public static boolean isMacOs() { public static boolean isMacOs() {
@ -42,20 +42,20 @@ public class EnvironmentUtil {
/** /**
* Returns true if running under UNIX. * Returns true if running under UNIX.
* *
* @return Running under UNIX * @return Running under UNIX
*/ */
public static boolean isUnix() { public static boolean isUnix() {
return OS.contains("nix") || OS.contains("nux") || OS.contains("aix"); return OS.contains("nix") || OS.contains("nux") || OS.contains("aix");
} }
/** /**
* Returns true if we are in a unit testing environment. * Returns true if we are in a unit testing environment.
* *
* @return Unit testing environment * @return Unit testing environment
*/ */
public static boolean isUnitTest() { public static boolean isUnitTest() {
return !webappContext || isDevMode(); return !webappContext;
} }
/** /**
@ -66,10 +66,10 @@ public class EnvironmentUtil {
public static boolean isDevMode() { public static boolean isDevMode() {
return "dev".equalsIgnoreCase(APPLICATION_MODE); return "dev".equalsIgnoreCase(APPLICATION_MODE);
} }
/** /**
* Returns the MS Windows AppData directory of this user. * Returns the MS Windows AppData directory of this user.
* *
* @return AppData directory * @return AppData directory
*/ */
public static String getWindowsAppData() { public static String getWindowsAppData() {
@ -78,7 +78,7 @@ public class EnvironmentUtil {
/** /**
* Returns the Mac OS home directory of this user. * Returns the Mac OS home directory of this user.
* *
* @return Home directory * @return Home directory
*/ */
public static String getMacOsUserHome() { public static String getMacOsUserHome() {
@ -87,7 +87,7 @@ public class EnvironmentUtil {
/** /**
* Returns the home directory of DOCS (e.g. /var/docs). * Returns the home directory of DOCS (e.g. /var/docs).
* *
* @return Home directory * @return Home directory
*/ */
public static String getDocsHome() { public static String getDocsHome() {

View File

@ -1 +1 @@
db.version=18 db.version=19

View File

@ -0,0 +1,2 @@
create index IDX_DOT_COMPOSITE on T_DOCUMENT_TAG (DOT_IDDOCUMENT_C, DOT_IDTAG_C, DOT_DELETEDATE_D);
update T_CONFIG set CFG_VALUE_C = '19' where CFG_ID_C = 'DB_VERSION';

View File

@ -1,3 +1,3 @@
api.current_version=${project.version} api.current_version=${project.version}
api.min_version=1.0 api.min_version=1.0
db.version=18 db.version=19

View File

@ -1,3 +1,3 @@
api.current_version=${project.version} api.current_version=${project.version}
api.min_version=1.0 api.min_version=1.0
db.version=18 db.version=19

View File

@ -1,3 +1,3 @@
api.current_version=${project.version} api.current_version=${project.version}
api.min_version=1.0 api.min_version=1.0
db.version=18 db.version=19