Migration
abstract classe Migration (Voir la source)
Méthodes
                    void
                
                
                    __construct()
        
                                            
                
            Migration constructor
                    void
                
                
                    up()
        
                                            
                
            Up migration
                    void
                
                
                    rollback()
        
                                            
                
            Rollback migration
                    connection(string $name)
        
                                            
                
            Switch connection
                    dropIfExists(string $table)
        
                                            
                
            Drop table if he exists action
                    renameTable(string $table, string $to)
        
                                            
                
            Add SQL query
                    string
                
                
                    getTablePrefixed(string $table)
        
                                            
                
            Get prefixed table name
Détails
        
                            void
    __construct()
        
    
    Migration constructor
        
            abstract                void
    up()
        
    
    Up migration
        
            abstract                void
    rollback()
        
    
    Rollback migration
        
        final                    Migration
    connection(string $name)
        
    
    Switch connection
        
        final                    Migration
    drop(string $table)
        
    
    Drop table action
        
        final                    Migration
    dropIfExists(string $table)
        
    
    Drop table if he exists action
        
        final                    Migration
    create(string $table, callable $cb)
        
    
    Function of creation of a new table in the database.
        
        final                    Migration
    alter(string $table, callable $cb)
        
    
    Alter table action.
        
        final                    Migration
    addSql(string $sql)
        
    
    Add SQL query
        
        final                    Migration
    renameTable(string $table, string $to)
        
    
    Add SQL query
        
        final                    string
    getTablePrefixed(string $table)
        
    
    Get prefixed table name