Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaration of timestamp is incompitible #6

Open
shalinimonad opened this issue Aug 10, 2018 · 1 comment
Open

Declaration of timestamp is incompitible #6

shalinimonad opened this issue Aug 10, 2018 · 1 comment

Comments

@shalinimonad
Copy link

On migration , i am getting error:

In Blueprint.php line 7:                                                                             
  Declaration of Cubettech\Lacassa\Schema\Blueprint::timestamp($column) should be compatible with Illuminate\Database\Schema\Blueprint::timestamp($column, $precision = 0)    

Fixed by changing timestamp function

public function timestamp($column)
 {
     return $this->addColumn('timestamp', $column);
 }

To this

public function timestamp($column, $precision = 0)
  {
      return $this->addColumn('timestamp', $column, compact('precision'));
  }
@shalinimonad
Copy link
Author

@cubettech Please update fix in package .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant