mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
added the upload functions for both company image and registration certificate, stored under /storage/app directory
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddNullableToCompanies extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
//
|
||||
$table->string('company_profile')->nullable()->change(); //need to check about storage type
|
||||
$table->string('reg_cert')->nullable()->change();
|
||||
$table->string('company_name')->nullable()->change();
|
||||
$table->string('registration_no')->nullable()->change();
|
||||
$table->string('tax_no')->nullable()->change();
|
||||
$table->integer('tel_no')->nullable()->change();
|
||||
$table->integer('fax')->nullable()->change();
|
||||
$table->string('address')->nullable()->change();
|
||||
$table->string('city')->nullable()->change();
|
||||
$table->string('postcode')->nullable()->change();
|
||||
$table->string('state')->nullable()->change();
|
||||
$table->string('country')->nullable()->change();
|
||||
$table->string('contact_person')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user