Exemplo n.º 1
0
<?php

use Virge\Database\Component\Schema;
/**
 * Setup schema migration database tables (using the schema migration tool)
 * @author Michael Kramer
 */
Schema::create(function () {
    Schema::table('virge_migration');
    Schema::id('id');
    Schema::string('filename')->setIndex('INDEX');
    Schema::timestamp('executed_on');
    Schema::string('executed_by');
    Schema::text('summary');
    //all output
    Schema::end();
});
Exemplo n.º 2
0
<?php

use Virge\Database\Component\Schema;
Schema::create(function () {
    Schema::table('your_table_name');
});