auto increment

This commit is contained in:
Bryan Stitt 2022-08-06 04:39:33 +00:00
parent 64f4a4b419
commit 2d6c1dfb16
2 changed files with 9 additions and 8 deletions

@ -15,8 +15,8 @@ impl MigrationTrait for Migration {
ColumnDef::new(User::Id)
.big_integer()
.not_null()
.primary_key()
.auto_increment(),
.auto_increment()
.primary_key(),
)
.col(
ColumnDef::new(User::Address)
@ -39,8 +39,8 @@ impl MigrationTrait for Migration {
ColumnDef::new(SecondaryUser::Id)
.big_integer()
.not_null()
.primary_key()
.auto_increment(),
.auto_increment()
.primary_key(),
)
.col(
ColumnDef::new(SecondaryUser::UserId)
@ -78,8 +78,8 @@ impl MigrationTrait for Migration {
ColumnDef::new(BlockList::Id)
.big_integer()
.not_null()
.primary_key()
.auto_increment(),
.auto_increment()
.primary_key(),
)
.col(
ColumnDef::new(BlockList::Address)
@ -101,8 +101,8 @@ impl MigrationTrait for Migration {
ColumnDef::new(UserKeys::Id)
.big_integer()
.not_null()
.primary_key()
.auto_increment(),
.auto_increment()
.primary_key(),
)
.col(ColumnDef::new(UserKeys::UserId).big_integer().not_null())
.col(

@ -177,6 +177,7 @@ impl JsonRpcForwardedResponse {
error: Some(JsonRpcErrorData {
// TODO: set this jsonrpc error code to match the http status code
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(),
data: None,
}),