spec/dummy/db/structure.sql in metasploit-credential-2.0.4 vs spec/dummy/db/structure.sql in metasploit-credential-2.0.5
- old
+ new
@@ -3477,14 +3477,21 @@
--
-- Name: index_metasploit_credential_privates_on_type_and_data; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
-CREATE UNIQUE INDEX index_metasploit_credential_privates_on_type_and_data ON metasploit_credential_privates USING btree (type, data);
+CREATE UNIQUE INDEX index_metasploit_credential_privates_on_type_and_data ON metasploit_credential_privates USING btree (type, data) WHERE (NOT ((type)::text = 'Metasploit::Credential::SSHKey'::text));
--
+-- Name: index_metasploit_credential_privates_on_type_and_data_sshkey; Type: INDEX; Schema: public; Owner: -; Tablespace:
+--
+
+CREATE UNIQUE INDEX index_metasploit_credential_privates_on_type_and_data_sshkey ON metasploit_credential_privates USING btree (type, decode(md5(data), 'hex'::text)) WHERE ((type)::text = 'Metasploit::Credential::SSHKey'::text);
+
+
+--
-- Name: index_metasploit_credential_publics_on_username; Type: INDEX; Schema: public; Owner: -; Tablespace:
--
CREATE UNIQUE INDEX index_metasploit_credential_publics_on_username ON metasploit_credential_publics USING btree (username);
@@ -4075,9 +4082,13 @@
INSERT INTO schema_migrations (version) VALUES ('20150421211719');
INSERT INTO schema_migrations (version) VALUES ('20150514182921');
INSERT INTO schema_migrations (version) VALUES ('20160415153312');
+
+INSERT INTO schema_migrations (version) VALUES ('20161107153145');
+
+INSERT INTO schema_migrations (version) VALUES ('20161107203710');
INSERT INTO schema_migrations (version) VALUES ('21');
INSERT INTO schema_migrations (version) VALUES ('22');