lundi 8 octobre 2018

laravel - update database

i created a app in laravel. At the beginning, i made a migration with the folowing content:

   public function up()
{
    Schema::create('kundens', function (Blueprint $table) {
        $table->increments('id');
        $table->timestamps();
        $table->unsignedInteger('user_id');       
        $table->string('vorname');
        $table->string('nachname');
        $table->string('strasse');
        $table->integer('plz');
        $table->string('wohnort');
        $table->string('mail');
        $table->integer('telefon');
        $table->string('geburtsdatum');

    });
}

No i want to add some tables like: kaufpreis or "modernisierung". I added them under the other tables but when i save the file and write in the terminal i get the error: nothing to migrate.

So now how can i add some tables for more information?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire