Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column size increase #86

Merged
merged 4 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ services:

liquibase:
image: nldi-liquibase
depends_on:
- db
build:
context: ./liquibase
args:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ databaseChangeLog:
preConditions:
- onFail: MARK_RAN
- onError: HALT
- not:
- indexExists:
NLDI_SCHEMA_NAME: nldi_data
indexName: web_service_log_id_identifier
- sqlCheck:
expectedResult: 0
sql: select count(*) from pg_catalog.pg_indexes where schemaname = 'nldi_data' and indexname = 'web_service_log_id_identifier'
changes:
- sql: create index web_service_log_id_identifier on nldi_data.web_service_log(web_service_log_id);
- rollback: drop index if exists nldi_data.web_service_log_id_identifier;
6 changes: 6 additions & 0 deletions liquibase/changeLogs/nldi/nldi_data/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ create table nldi_data.crawler_source
alter table nldi_data.crawler_source owner to ${NLDI_SCHEMA_OWNER_USERNAME};
--rollback drop table nldi_data.crawler_source;

--changeset egrahn:alter.nldi_data.crawler_source.source_suffic
--preconditions onFail:MARK_RAN onError:HALT
--preconditions-sql-check expectedResult:10 select character_maximum_length from information_schema.columns where table_name = 'crawler_source' and table_schema = 'nldi_data' and column_name = 'source_suffix'
alter table nldi_data.crawler_source alter column source_suffix type varchar(1000);
--rollback alter table nldi_data.crawler_source alter column source_suffix type varchar(10);

--changeset drsteini:create.nldi_data.feature
--preconditions onFail:MARK_RAN onError:HALT
--precondition-sql-check expectedResult:0 select count(*) from information_schema.tables where table_schema = 'nldi_data' and table_name = 'feature'
Expand Down