/**
  * Revert the changes to the database.
  *
  * @return void
  */
 public function down()
 {
     //
     Laravel\Database\Schema::drop('materiales');
     Laravel\Database\Schema::drop('unidadmaterial');
     Laravel\Database\Schema::drop('categoriamaterial');
 }
 /**
  * Make changes to the database.
  *
  * @return void
  */
 public function up()
 {
     //ESTATUS: A=ACTIVO I=INACTIVO
     Laravel\Database\Schema::create('proveedores', function ($table) {
         $table->increments('id');
         $table->string('clave', 12)->unique();
         //Indice unico a este campo
         $table->string('nombre', 100);
         $table->string('direccion', 100);
         $table->string('colonia', 40);
         $table->string('ciudad', 30);
         $table->string('estado', 30);
         $table->string('pais', 30);
         $table->string('cp', 10);
         $table->string('rfc', 20);
         $table->string('tel1', 20);
         $table->string('tel2', 20);
         $table->string('fax', 20);
         $table->string('idRadio', 12);
         $table->string('contacto', 80);
         $table->string('email', 50);
         $table->string('tipo_proveedor', 10);
         //Proveedor u Acreedor
         $table->string('estatus', 12)->default('A');
         $table->string('plazo', 12)->default(30);
         //Plazo que tiene para pagar
         $table->timestamps();
     });
 }
 /**
  * Revert the changes to the database.
  *
  * @return void
  */
 public function down()
 {
     //
     Laravel\Database\Schema::drop('detalle_fxp');
     Laravel\Database\Schema::drop('facturasxpagar');
 }