Ejemplo n.º 1
0
 public function testRemoveColumn()
 {
     $schema = Schema::create()->add('id', 'number')->add('name', 'string');
     $this->assertTrue($schema->has('id'));
     $schema->remove('id');
     $this->assertFalse($schema->has('id'));
 }
Ejemplo n.º 2
0
 public static function getBeatlesSchema()
 {
     return Schema::create()->add('name', 'string')->add('birthday', 'datetime', array('time_format' => \IntlDateFormatter::NONE))->add('alive', 'boolean', array('true_value' => 'yes :)', 'false_value' => 'no :('));
 }