#NEWLINE# def schema_create( self , config = None , engine = None ) : #NEWLINE# #INDENT# "Create database schema from models description.\n\n        Can be used for initial installation instead of upgrade('head').\n        :param config: Instance of alembic config\n        :param engine: Instance of DB engine\n        " #NEWLINE# engine = ( engine or get_engine ( ) ) #NEWLINE# if ( self . schema_revision ( engine = engine ) is not None ) : #NEWLINE# #INDENT# raise db_exc . DbMigrationError ( 'DB schema is already under version control. Use upgrade() instead' ) #NEWLINE# #UNINDENT# models . BASE . metadata . create_all ( engine ) #NEWLINE# self . schema_stamp ( 'head' , config = config )