Skip to content

Problems with Nova migrations #6770

@rodriguezrod1

Description

@rodriguezrod1
  • Laravel Version: 12.0
  • Nova Version: 5.0
  • PHP Version: 8.2
  • Database Driver & Version:
  • Operating System and Version: Linux Ubuntu 24.04
  • Browser type and version: chrome
  • Reproduction Repository: [email protected]:netik/invoice-system-backend.git

Description:

I have a problem, after installing Nova with all its steps, in the final step of running the migrations I get the error described below. Thanks in advance.

Detailed steps to reproduce the issue on a fresh Nova installation:

INFO Running migrations.

2018_01_01_000000_create_action_events_table .................................................................... 2.66ms FAIL

Error

Call to a member function getKeyType() on null

at vendor/laravel/framework/src/Illuminate/Database/Schema/Blueprint.php:1032
1028▕ }
1029▕
1030▕ $column = $column ?: $model->getForeignKey();
1031▕
➜ 1032▕ if ($model->getKeyType() === 'int') {
1033▕ return $this->foreignId($column)
1034▕ ->table($model->getTable())
1035▕ ->referencesModelColumn($model->getKeyName());
1036▕ }

  +32 vendor frames 

33 artisan:16
Illuminate\Foundation\Application::handleCommand()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions