Skip to content

Commit 5b6c968

Browse files
committed
Add test case for #998
1 parent 42c0e29 commit 5b6c968

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/table/column.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl ColumnDef {
311311
/// .table("character")
312312
/// .col(ColumnDef::new("font_id").integer().default(12i32))
313313
/// .col(
314-
/// ColumnDef::new("font_id_plus_1")
314+
/// ColumnDef::new("font_id_2")
315315
/// .integer()
316316
/// .default(Expr::val(12).add(2)),
317317
/// )
@@ -328,7 +328,7 @@ impl ColumnDef {
328328
/// [
329329
/// "CREATE TABLE `character` (",
330330
/// "`font_id` int DEFAULT 12,",
331-
/// "`font_id_plus_1` int DEFAULT (12 + 2),",
331+
/// "`font_id_2` int DEFAULT (12 + 2),",
332332
/// "`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP",
333333
/// ")",
334334
/// ]
@@ -340,7 +340,7 @@ impl ColumnDef {
340340
/// [
341341
/// r#"CREATE TABLE "character" ("#,
342342
/// r#""font_id" integer DEFAULT 12,"#,
343-
/// r#""font_id_plus_1" integer DEFAULT (12 + 2),"#,
343+
/// r#""font_id_2" integer DEFAULT (12 + 2),"#,
344344
/// r#""created_at" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP"#,
345345
/// r#")"#,
346346
/// ]

0 commit comments

Comments
 (0)