Skip to content

Commit

Permalink
Tweak MySQL test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Feb 7, 2021
1 parent 8def9dd commit a9bda78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ assert_eq!(
r#"CREATE TABLE IF NOT EXISTS `character` ("#,
r#"`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,"#,
r#"`font_size` int NOT NULL,"#,
r#"`character` varchar NOT NULL,"#,
r#"`character` varchar(255) NOT NULL,"#,
r#"`size_w` int NOT NULL,"#,
r#"`size_h` int NOT NULL,"#,
r#"`font_id` int DEFAULT NULL,"#,
Expand Down
6 changes: 3 additions & 3 deletions tests/mysql/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ fn create_2() {
Table::create()
.table(Font::Table)
.col(ColumnDef::new(Font::Id).integer_len(11).not_null().auto_increment().primary_key())
.col(ColumnDef::new(Font::Name).string_len(255).not_null())
.col(ColumnDef::new(Font::Name).string().not_null())
.col(ColumnDef::new(Font::Variant).string_len(255).not_null())
.col(ColumnDef::new(Font::Language).string_len(255).not_null())
.col(ColumnDef::new(Font::Language).string_len(1024).not_null())
.engine("InnoDB")
.character_set("utf8mb4")
.collate("utf8mb4_unicode_ci")
Expand All @@ -40,7 +40,7 @@ fn create_2() {
"`id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,",
"`name` varchar(255) NOT NULL,",
"`variant` varchar(255) NOT NULL,",
"`language` varchar(255) NOT NULL",
"`language` varchar(1024) NOT NULL",
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci",
].join(" ")
);
Expand Down

0 comments on commit a9bda78

Please sign in to comment.