]> WPIA git - gigi.git/blob - src/org/cacert/gigi/database/upgrade/from_9.sql
fix: ResultSet.getDate is often wrong as it fetches day-precision times
[gigi.git] / src / org / cacert / gigi / database / upgrade / from_9.sql
1 ALTER TABLE "emailPinglog" ADD COLUMN "challenge" varchar(255) NULL DEFAULT NULL;
2
3 INSERT INTO "emailPinglog" SELECT CURRENT_TIMESTAMP AS "when", "memid" AS "uid", "email", 'active'::"emailPingType" AS "type", CASE WHEN "hash"='' THEN 'success'::"pingState" ELSE 'open'::"pingState" END AS state, '' AS result, "hash" AS "challenge" FROM "emails";
4 ALTER TABLE "emails" DROP COLUMN "attempts";
5 ALTER TABLE "emails" DROP COLUMN "hash";