corretto lunghezza stringa colonne ntelaio e nmotore
This commit is contained in:
@@ -22,10 +22,10 @@ class CreateAutosTable extends Migration
|
||||
$table->string('cilindrata',10);
|
||||
$table->string('alimentazione',10);
|
||||
$table->string('cvfiscali',10);
|
||||
$table->string('ntelaio',10);
|
||||
$table->string('nmotore',10);
|
||||
$table->string('ntelaio',30);
|
||||
$table->string('nmotore',30)->nullable();
|
||||
$table->date('data_acquisto');
|
||||
$table->text('note');
|
||||
$table->text('note')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,5 +14,10 @@ class DatabaseSeeder extends Seeder
|
||||
public function run()
|
||||
{
|
||||
// \App\Models\User::factory(10)->create();
|
||||
$this->call([
|
||||
UserSeeder::class,
|
||||
TagSeeder::class,
|
||||
CategorieSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class UserSeeder extends Seeder
|
||||
|
||||
Reference in New Issue
Block a user