Skip to content

Commit e7f6696

Browse files
committed
Update sourcify-database.sql schema for upstream VerA changes
1 parent 194aac3 commit e7f6696

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

services/database/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The migrations should be used to update the live Sourcify production and staging
2525
Schema changes should be made depending on the type of change:
2626
If they are a Sourcify extension, they should be made inside this repo.
2727
If they concern the Verifier Alliance schema, changes should be made in the Verifier Alliance [database-specs](https://github.com/verifier-alliance/database-specs) repository and then be pulled into this repository by updating the git submodule.
28+
After updating the submodule, the schema dump `sourcify-database.sql` should be updated by running the migrations from this repository.
2829

2930
Any new migration should be capable of updating the live Sourcify staging and production databases.
3031

services/database/sourcify-database.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,13 @@ CREATE INDEX compiled_contracts_sources_compilation_id ON public.compiled_contra
13811381
CREATE INDEX compiled_contracts_sources_source_hash ON public.compiled_contracts_sources USING btree (source_hash);
13821382

13831383

1384+
--
1385+
-- Name: contract_deployments_address; Type: INDEX; Schema: public; Owner: -
1386+
--
1387+
1388+
CREATE INDEX contract_deployments_address ON public.contract_deployments USING btree (address);
1389+
1390+
13841391
--
13851392
-- Name: contract_deployments_contract_id; Type: INDEX; Schema: public; Owner: -
13861393
--
@@ -1887,4 +1894,5 @@ ALTER TABLE ONLY public.verified_contracts
18871894

18881895
INSERT INTO public.schema_migrations (version) VALUES
18891896
('20250717103432'),
1890-
('20250722133557');
1897+
('20250722133557'),
1898+
('20250723145429');

0 commit comments

Comments
 (0)