fix(mysql-setup): Change default charset to utf8mb4 (#3088)

This commit is contained in:
Dexter Lee 2021-08-12 16:52:00 -07:00 committed by GitHub
parent b73d0ebb8b
commit 01bc0e8e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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',

View File

@ -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": {}