auto increment
This commit is contained in:
parent
64f4a4b419
commit
2d6c1dfb16
|
@ -15,8 +15,8 @@ impl MigrationTrait for Migration {
|
||||||
ColumnDef::new(User::Id)
|
ColumnDef::new(User::Id)
|
||||||
.big_integer()
|
.big_integer()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key()
|
.auto_increment()
|
||||||
.auto_increment(),
|
.primary_key(),
|
||||||
)
|
)
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(User::Address)
|
ColumnDef::new(User::Address)
|
||||||
|
@ -39,8 +39,8 @@ impl MigrationTrait for Migration {
|
||||||
ColumnDef::new(SecondaryUser::Id)
|
ColumnDef::new(SecondaryUser::Id)
|
||||||
.big_integer()
|
.big_integer()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key()
|
.auto_increment()
|
||||||
.auto_increment(),
|
.primary_key(),
|
||||||
)
|
)
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(SecondaryUser::UserId)
|
ColumnDef::new(SecondaryUser::UserId)
|
||||||
|
@ -78,8 +78,8 @@ impl MigrationTrait for Migration {
|
||||||
ColumnDef::new(BlockList::Id)
|
ColumnDef::new(BlockList::Id)
|
||||||
.big_integer()
|
.big_integer()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key()
|
.auto_increment()
|
||||||
.auto_increment(),
|
.primary_key(),
|
||||||
)
|
)
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(BlockList::Address)
|
ColumnDef::new(BlockList::Address)
|
||||||
|
@ -101,8 +101,8 @@ impl MigrationTrait for Migration {
|
||||||
ColumnDef::new(UserKeys::Id)
|
ColumnDef::new(UserKeys::Id)
|
||||||
.big_integer()
|
.big_integer()
|
||||||
.not_null()
|
.not_null()
|
||||||
.primary_key()
|
.auto_increment()
|
||||||
.auto_increment(),
|
.primary_key(),
|
||||||
)
|
)
|
||||||
.col(ColumnDef::new(UserKeys::UserId).big_integer().not_null())
|
.col(ColumnDef::new(UserKeys::UserId).big_integer().not_null())
|
||||||
.col(
|
.col(
|
||||||
|
|
|
@ -177,6 +177,7 @@ impl JsonRpcForwardedResponse {
|
||||||
error: Some(JsonRpcErrorData {
|
error: Some(JsonRpcErrorData {
|
||||||
// TODO: set this jsonrpc error code to match the http status code
|
// TODO: set this jsonrpc error code to match the http status code
|
||||||
code: -32099,
|
code: -32099,
|
||||||
|
// TODO: some errors should be included here. others should not. i think anyhow might not be the right choice
|
||||||
message: "internal server error".to_string(),
|
message: "internal server error".to_string(),
|
||||||
data: None,
|
data: None,
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue