Skip to content

Commit a36c5a8

Browse files
committed
Fix the printschema tests
1 parent 5e72021 commit a36c5a8

6 files changed

Lines changed: 3 additions & 25 deletions

File tree

diesel_cli/tests/print_schema/print_schema_default_is_to_generate_custom_types/postgres/expected.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod sql_types {
77
/// The `my_type` SQL type
88
///
99
/// (Automatically generated by Diesel.)
10-
#[derive(diesel::SqlType)]
10+
#[derive(diesel::sql_types::SqlType)]
1111
#[postgres(type_name = "my_type")]
1212
pub struct MyType;
1313
}

diesel_cli/tests/print_schema/print_schema_specifying_schema_name_with_custom_type/postgres/expected.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub mod custom_schema {
88
/// The `custom_schema.my_enum` SQL type
99
///
1010
/// (Automatically generated by Diesel.)
11-
#[derive(diesel::SqlType)]
11+
#[derive(diesel::sql_types::SqlType)]
1212
#[postgres(type_name = "my_enum", type_schema = "custom_schema")]
1313
pub struct MyEnum;
1414
}

diesel_cli/tests/print_schema/print_schema_type_renaming/postgres/expected.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod sql_types {
77
/// The `user_job` SQL type
88
///
99
/// (Automatically generated by Diesel.)
10-
#[derive(diesel::SqlType)]
10+
#[derive(diesel::sql_types::SqlType)]
1111
#[postgres(type_name = "user_job")]
1212
pub struct UserJob;
1313
}

diesel_cli/tests/print_schema/schema_file_contains_custom_types/diesel.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

diesel_cli/tests/print_schema/schema_file_contains_custom_types/postgres/expected.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

diesel_cli/tests/print_schema/schema_file_contains_custom_types/postgres/schema.sql

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)