Skip to content

Commit

Permalink
Ext - Specify COLLATE when creating tables
Browse files Browse the repository at this point in the history
This uses the new syntax generated by totten/civix#329
  • Loading branch information
colemanw committed Feb 14, 2024
1 parent 6871ae1 commit 5cc8b1c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ext/afform/core/sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ CREATE TABLE `civicrm_afform_submission` (
PRIMARY KEY (`id`),
CONSTRAINT FK_civicrm_afform_submission_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL
)
ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
2 changes: 1 addition & 1 deletion ext/civigrant/sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ CREATE TABLE `civicrm_grant` (
CONSTRAINT FK_civicrm_grant_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE,
CONSTRAINT FK_civicrm_grant_financial_type_id FOREIGN KEY (`financial_type_id`) REFERENCES `civicrm_financial_type`(`id`) ON DELETE SET NULL
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
6 changes: 3 additions & 3 deletions ext/oauth-client/sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CREATE TABLE `civicrm_oauth_client` (
INDEX `UI_provider`(provider),
INDEX `UI_guid`(guid)
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand Down Expand Up @@ -76,7 +76,7 @@ CREATE TABLE `civicrm_oauth_contact_token` (
CONSTRAINT FK_civicrm_oauth_contact_token_client_id FOREIGN KEY (`client_id`) REFERENCES `civicrm_oauth_client`(`id`) ON DELETE CASCADE,
CONSTRAINT FK_civicrm_oauth_contact_token_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand All @@ -103,4 +103,4 @@ CREATE TABLE `civicrm_oauth_systoken` (
INDEX `UI_tag`(tag),
CONSTRAINT FK_civicrm_oauth_systoken_client_id FOREIGN KEY (`client_id`) REFERENCES `civicrm_oauth_client`(`id`) ON DELETE CASCADE
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
2 changes: 1 addition & 1 deletion ext/oauth-client/sql/upgrade_0001.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ CREATE TABLE `civicrm_oauth_contact_token` (
)

, CONSTRAINT FK_civicrm_oauth_contact_token_client_id FOREIGN KEY (`client_id`) REFERENCES `civicrm_oauth_client`(`id`) ON DELETE CASCADE, CONSTRAINT FK_civicrm_oauth_contact_token_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB ;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
4 changes: 2 additions & 2 deletions ext/search_kit/sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CREATE TABLE `civicrm_search_display` (
UNIQUE INDEX `UI_saved_search__id_name`(saved_search_id, name),
CONSTRAINT FK_civicrm_search_display_saved_search_id FOREIGN KEY (`saved_search_id`) REFERENCES `civicrm_saved_search`(`id`) ON DELETE CASCADE
)
ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand All @@ -65,4 +65,4 @@ CREATE TABLE `civicrm_search_segment` (
PRIMARY KEY (`id`),
UNIQUE INDEX `UI_name`(name)
)
ENGINE=InnoDB ROW_FORMAT=DYNAMIC;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
8 changes: 4 additions & 4 deletions ext/standaloneusers/sql/auto_install.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CREATE TABLE `civicrm_role` (
`is_active` tinyint NOT NULL DEFAULT 1 COMMENT 'Only active roles grant permissions',
PRIMARY KEY (`id`)
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand All @@ -61,7 +61,7 @@ CREATE TABLE `civicrm_session` (
PRIMARY KEY (`id`),
UNIQUE INDEX `index_session_id`(session_id)
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand Down Expand Up @@ -93,7 +93,7 @@ CREATE TABLE `civicrm_uf_match` (
CONSTRAINT FK_civicrm_uf_match_domain_id FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain`(`id`),
CONSTRAINT FK_civicrm_uf_match_contact_id FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact`(`id`) ON DELETE SET NULL
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

-- /*******************************************************
-- *
Expand All @@ -110,4 +110,4 @@ CREATE TABLE `civicrm_user_role` (
CONSTRAINT FK_civicrm_user_role_user_id FOREIGN KEY (`user_id`) REFERENCES `civicrm_uf_match`(`id`) ON DELETE CASCADE,
CONSTRAINT FK_civicrm_user_role_role_id FOREIGN KEY (`role_id`) REFERENCES `civicrm_role`(`id`) ON DELETE CASCADE
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
2 changes: 1 addition & 1 deletion ext/standaloneusers/sql/upgrade_5691.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ CREATE TABLE `civicrm_session` (
PRIMARY KEY (`id`),
UNIQUE INDEX `index_session_id`(session_id)
)
ENGINE=InnoDB;
ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;

0 comments on commit 5cc8b1c

Please sign in to comment.