Skip to content

Commit

Permalink
update sqlite schema to match migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattis committed Jun 15, 2022
1 parent ad0aa30 commit 957cca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions database/base.sqlite.indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ CREATE INDEX "idx_preload_preload_study_id_foreign" ON "preload" (`study_id`);
CREATE INDEX "idx_preload_preload_last_question_id_foreign" ON "preload" (`last_question_id`);
CREATE INDEX "idx_edge_fk__edge_source_respondent_id__respondent_idx" ON "edge" (`source_respondent_id`);
CREATE INDEX "idx_edge_fk__edge_target_respondent_id__respondent_idx" ON "edge" (`target_respondent_id`);
CREATE INDEX "idx_edge_idx_edge_note" ON "edge" (`note`);
CREATE INDEX "idx_form_section_fk__form_section__form_idx" ON "form_section" (`form_id`);
CREATE INDEX "idx_form_section_fk__form_section__section_idx" ON "form_section" (`section_id`);
CREATE INDEX "idx_form_section_fk__form_section_repeat_prompt__translation_idx" ON "form_section" (`repeat_prompt_translation_id`);
Expand Down
1 change: 1 addition & 0 deletions database/base.sqlite.schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ CREATE TABLE `edge` (
, `created_at` datetime NOT NULL
, `updated_at` datetime NOT NULL
, `deleted_at` datetime DEFAULT NULL
, `note` varchar(255) NOT NULL
, PRIMARY KEY (`id`)
, CONSTRAINT `fk__edge_list_source__respondent` FOREIGN KEY (`source_respondent_id`) REFERENCES `respondent` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
, CONSTRAINT `fk__edge_list_target__respondent` FOREIGN KEY (`target_respondent_id`) REFERENCES `respondent` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
Expand Down

0 comments on commit 957cca1

Please sign in to comment.