Minor fix.
This commit is contained in:
parent
562ee3e782
commit
c89a73f738
2
.github/workflow/on-pr.yaml
vendored
2
.github/workflow/on-pr.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
sleep 10
|
sleep 10
|
||||||
docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \
|
docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \
|
||||||
-e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \
|
-e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \
|
||||||
vulcanize/docker-concise-migration-build
|
vulcanize/concise-migration-build
|
||||||
- name: Verify schema is latest
|
- name: Verify schema is latest
|
||||||
run: |
|
run: |
|
||||||
PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql
|
PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql
|
||||||
|
2
Makefile
2
Makefile
@ -87,4 +87,4 @@ docker-build:
|
|||||||
## Build docker image for migration
|
## Build docker image for migration
|
||||||
.PHONY: docker-concise-migration-build
|
.PHONY: docker-concise-migration-build
|
||||||
docker-concise-migration-build:
|
docker-concise-migration-build:
|
||||||
docker build -t vulcanize/docker-concise-migration-build -f ./db/Dockerfile .
|
docker build -t vulcanize/concise-migration-build -f ./db/Dockerfile .
|
15
db/migrations/00015_create_access_list_table.sql
Normal file
15
db/migrations/00015_create_access_list_table.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
-- +goose Up
|
||||||
|
CREATE TABLE eth.access_list_element (
|
||||||
|
id SERIAL PRIMARY KEY,
|
||||||
|
tx_id INTEGER NOT NULL REFERENCES eth.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
||||||
|
index INTEGER NOT NULL,
|
||||||
|
address VARCHAR(66),
|
||||||
|
storage_keys VARCHAR(66)[],
|
||||||
|
UNIQUE (tx_id, index)
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE INDEX accesss_list_element_address_index ON eth.access_list_element USING btree (address);
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
DROP INDEX eth.accesss_list_element_address_index;
|
||||||
|
DROP TABLE eth.access_list_element;
|
@ -5,7 +5,7 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
- test-db
|
- test-db
|
||||||
image: vulcanize/statediff-migrations:latest
|
image: vulcanize/statediff-migrations:v0.8.0
|
||||||
|
|
||||||
test-db:
|
test-db:
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user