[db] Fix warnings and fix readme
This commit is contained in:
		
							parent
							
								
									5ef603ee50
								
							
						
					
					
						commit
						974af80a9b
					
				| 
						 | 
				
			
			@ -44,6 +44,7 @@ class ModelSerializeMixin:
 | 
			
		|||
class Serial(TypeDecorator):
 | 
			
		||||
    """Same as MariaDB Serial used for IDs"""
 | 
			
		||||
 | 
			
		||||
    cache_ok=True
 | 
			
		||||
    impl = BigInteger().with_variant(mysql.BIGINT(unsigned=True), "mysql").with_variant(sqlite.INTEGER, "sqlite")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -46,7 +46,7 @@ If not you need to create user and database manually do (or similar on Windows):
 | 
			
		|||
    (
 | 
			
		||||
        echo "CREATE DATABASE flaschengeist;"
 | 
			
		||||
        echo "CREATE USER 'flaschengeist'@'localhost' IDENTIFIED BY 'flaschengeist';"
 | 
			
		||||
        echo "GRANT ALL PRIVILEGES ON 'flaschengeist'.* TO 'flaschengeist'@'localhost';"
 | 
			
		||||
        echo "GRANT ALL PRIVILEGES ON flaschengeist.* TO 'flaschengeist'@'localhost';"
 | 
			
		||||
        echo "FLUSH PRIVILEGES;"
 | 
			
		||||
    ) | sudo mysql
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue