| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class CreateEmployeesTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | if (config('database.connections.sqlsrv.driver') == 'sqlite') { |
||
| 17 | return; |
||
| 18 | } |
||
| 19 | |||
| 20 | Schema::create('employees', function (Blueprint $table) { |
||
| 21 | $table->increments('id'); |
||
| 22 | $table->string('full_name'); |
||
| 23 | $table->string('br_cpf'); |
||
| 24 | $table->string('email')->unique(); |
||
| 25 | $table->string('telephone_type'); |
||
| 26 | $table->string('telephone'); |
||
| 27 | $table->string('zip_code'); |
||
| 28 | $table->string('city'); |
||
| 29 | $table->string('state'); |
||
| 30 | $table->string('avenue'); |
||
| 31 | $table->bigInteger('number'); |
||
| 32 | $table->string('neighborhood'); |
||
| 33 | $table->string('complement'); |
||
| 34 | $table->string('password'); |
||
| 35 | $table->boolean('active'); |
||
| 36 | $table->rememberToken(); |
||
| 37 | $table->timestamps(); |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Reverse the migrations. |
||
| 43 | * |
||
| 44 | * @return void |
||
| 45 | */ |
||
| 46 | public function down() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |