mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	review feedback
This commit is contained in:
		
							parent
							
								
									e5bf0cecdd
								
							
						
					
					
						commit
						d1c8945b6e
					
				@ -83,7 +83,7 @@ or
 | 
			
		||||
 | 
			
		||||
`mysql -u <username> -p <database> < /path/to/dump.sql`
 | 
			
		||||
 | 
			
		||||
NOTE: MySQL will limit avatar size to 64Kb. You may need to remove avatars for some users. (Untested: you could probably change the column type to LONGBLOB )
 | 
			
		||||
NOTE: MySQL will limit avatar size to 64Kb. You may need to remove avatars for some users. See #486
 | 
			
		||||
 | 
			
		||||
## Switch to new database
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -193,7 +193,7 @@ async fn create_schema(database_url: String) -> Result<()> {
 | 
			
		||||
    let sql_pool = {
 | 
			
		||||
        let mut sql_opt = sea_orm::ConnectOptions::new(database_url.clone());
 | 
			
		||||
        sql_opt
 | 
			
		||||
            .max_connections(5)
 | 
			
		||||
            .max_connections(1)
 | 
			
		||||
            .sqlx_logging(true)
 | 
			
		||||
            .sqlx_logging_level(log::LevelFilter::Debug);
 | 
			
		||||
        Database::connect(sql_opt).await?
 | 
			
		||||
@ -217,7 +217,7 @@ fn create_schema_command(opts: RunOpts) -> Result<()> {
 | 
			
		||||
        create_schema(database_url).unwrap_or_else(|e| error!("Could not create schema: {:#}", e)),
 | 
			
		||||
    )?;
 | 
			
		||||
 | 
			
		||||
    info!("End.");
 | 
			
		||||
    info!("Schema created successfully.");
 | 
			
		||||
    Ok(())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user