Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename column name & column enum variant #209

Merged
merged 5 commits into from
Sep 30, 2021
Merged

Conversation

billy1624
Copy link
Member

Resolve #194

@billy1624 billy1624 self-assigned this Sep 28, 2021
@billy1624 billy1624 marked this pull request as ready for review September 28, 2021 11:04
@tyt2y3
Copy link
Member

tyt2y3 commented Sep 29, 2021

We need some unit tests

Ref:

mod hello {
use crate as sea_orm;
use crate::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "hello")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub one: i32,
#[sea_orm(unique)]
pub two: i32,
#[sea_orm(indexed)]
pub three: i32,
#[sea_orm(nullable)]
pub four: i32,
#[sea_orm(unique, indexed, nullable)]
pub five: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
}

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)))

@billy1624
Copy link
Member Author

Unit tests added 088bfd0

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tyt2y3 tyt2y3 merged commit d4d2625 into master Sep 30, 2021
@tyt2y3 tyt2y3 deleted the rename-col-name-n-variant branch September 30, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Column name type
2 participants