Skip to content

Commit

Permalink
fix(mysql-setup): Change default charset to utf8mb4 (#3088)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexter Lee authored Aug 12, 2021
1 parent b73d0eb commit 01bc0e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/mysql-setup/init.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- create datahub database
CREATE DATABASE IF NOT EXISTS DATAHUB_DB_NAME;
CREATE DATABASE IF NOT EXISTS DATAHUB_DB_NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE DATAHUB_DB_NAME;

-- create metadata aspect table
Expand Down
2 changes: 1 addition & 1 deletion docker/mysql/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CREATE TABLE metadata_aspect_v2 (
createdby VARCHAR(255) NOT NULL,
createdfor VARCHAR(255),
CONSTRAINT pk_metadata_aspect_v2 PRIMARY KEY (urn,aspect,version)
);
) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

INSERT INTO metadata_aspect_v2 (urn, aspect, version, metadata, createdon, createdby) VALUES(
'urn:li:corpuser:datahub',
Expand Down
2 changes: 1 addition & 1 deletion smoke-test/sample_bq_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"aspects": [
{
"com.linkedin.pegasus2avro.dataset.DatasetProperties": {
"description": "This dataset shows hourly average border crossing duration for US-Canada and US-Mexico borders starting from 2020-03-16. Hourly trip volume is compared to average trip volume calculated between Feb.1st and Mar.15th, 2020 as a control group in each country.",
"description": "This dataset shows hourly average border crossing duration for US-Canada and US-Mexico borders starting from 2020-03-16. Hourly trip volume is compared to average trip volume calculated between Feb.1st and Mar.15th, 2020 as a control group in each country. 테스트",
"uri": null,
"tags": [],
"customProperties": {}
Expand Down

0 comments on commit 01bc0e8

Please sign in to comment.