Change-Id: I46ae11f8a158547f4b1c1e1ddf062f6016e36af0
- public static final int CURRENT_SCHEMA_VERSION = 32;
+ public static final int CURRENT_SCHEMA_VERSION = 33;
public static final int CONNECTION_TIMEOUT = 24 * 60 * 60;
public static final int CONNECTION_TIMEOUT = 24 * 60 * 60;
"profile" int NOT NULL,
"caid" int NULL DEFAULT NULL,
"profile" int NOT NULL,
"caid" int NULL DEFAULT NULL,
- "csr_name" varchar(255) NOT NULL DEFAULT '',
"csr_type" "csrType" NOT NULL,
"csr_type" "csrType" NOT NULL,
- "crt_name" varchar(255) NOT NULL DEFAULT '',
"created" timestamp NULL DEFAULT NULL,
"modified" timestamp NULL DEFAULT NULL,
"created" timestamp NULL DEFAULT NULL,
"modified" timestamp NULL DEFAULT NULL,
CREATE INDEX ON "certs" ("memid");
CREATE INDEX ON "certs" ("serial");
CREATE INDEX ON "certs" ("expire");
CREATE INDEX ON "certs" ("memid");
CREATE INDEX ON "certs" ("serial");
CREATE INDEX ON "certs" ("expire");
-CREATE INDEX ON "certs" ("crt_name");
DROP TABLE IF EXISTS "certAvas";
CREATE TABLE "certAvas" (
DROP TABLE IF EXISTS "certAvas";
CREATE TABLE "certAvas" (
"version" smallint NOT NULL,
PRIMARY KEY ("version")
);
"version" smallint NOT NULL,
PRIMARY KEY ("version")
);
-INSERT INTO "schemeVersion" (version) VALUES(32);
+INSERT INTO "schemeVersion" (version) VALUES(33);
DROP TABLE IF EXISTS `passwordResetTickets`;
CREATE TABLE `passwordResetTickets` (
DROP TABLE IF EXISTS `passwordResetTickets`;
CREATE TABLE `passwordResetTickets` (
--- /dev/null
+ALTER TABLE "certs" DROP COLUMN "csr_name";
+ALTER TABLE "certs" DROP COLUMN "crt_name";
+ // Skip Database connection as some statements need to be run on older DB scheme version.
+ if(new String(parsedUnit.getFileName()).endsWith("/src/club/wpia/gigi/database/DatabaseConnection.java")) {
+ continue;
+ }
if (parsedUnit.types == null) {
System.err.println("No types");
if (parsedUnit.types == null) {
System.err.println("No types");