Changed bathrooms to use float4 instead of int

This commit is contained in:
Franklin 2023-05-03 09:41:23 -04:00
parent bf6dd9aad4
commit 613b7308cd
3 changed files with 9 additions and 6 deletions

View File

@ -0,0 +1 @@
ALTER TABLE public.unit ALTER COLUMN bathrooms TYPE float4 USING bathrooms::float4;

View File

@ -43,7 +43,7 @@
{
"name": "bathrooms",
"ordinal": 5,
"type_info": "Int2"
"type_info": "Float4"
},
{
"name": "area",
@ -401,7 +401,7 @@
{
"name": "bathrooms",
"ordinal": 5,
"type_info": "Int2"
"type_info": "Float4"
},
{
"name": "area",
@ -453,7 +453,7 @@
"Float8",
"Varchar",
"Int2",
"Int2",
"Float4",
"Float4",
"Text",
"Text",
@ -787,7 +787,7 @@
{
"name": "bathrooms",
"ordinal": 5,
"type_info": "Int2"
"type_info": "Float4"
},
{
"name": "area",
@ -1477,7 +1477,7 @@
{
"name": "bathrooms",
"ordinal": 5,
"type_info": "Int2"
"type_info": "Float4"
},
{
"name": "area",
@ -1531,7 +1531,7 @@
"Float8",
"Varchar",
"Int2",
"Int2",
"Float4",
"Float4",
"Text",
"Text",

View File

@ -1,6 +1,7 @@
use std::{sync::Arc};
use actix_cors::Cors;
use actix_multipart::form::MultipartFormConfig;
use actix_web::{
web::{self},
App, HttpServer,
@ -26,6 +27,7 @@ pub async fn start_all_routes(start_time: i64, db_conn: Arc<PgPool>) -> Result<(
.app_data(client_state.clone())
.app_data(web::Data::new(db_conn.clone()))
.app_data(aws_client.clone())
.app_data(MultipartFormConfig::default().memory_limit(52_428_800))
.service(
web::scope("/api")
.service(