spatie / laravel-server-monitor

Don't let your servers just melt down
https://docs.spatie.be/laravel-server-monitor/v1/introduction
MIT License
813 stars 95 forks source link

Error on migration #63

Closed iainhamilton closed 6 years ago

iainhamilton commented 6 years ago

Hi, I followed the process in the install section but am getting the error at the end of the below.

I hope it helps that I copide the full install process.

cucmauqpjd:public_html$ composer require spatie/laravel-server-monitor Using version ^1.3 for spatie/laravel-server-monitor ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 4 installs, 0 updates, 0 removals

In Connection.php line 664:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u
se near 'json null, created_at timestamp null, updated_at timestamp null) default cha' at line 1 (SQL: create table hosts (id int unsigned not null auto_increment primary key
, name varchar(255) not null, ssh_user varchar(255) null, port int null, ip varchar(255) null, custom_properties json null, created_at timestamp null, updated_at timest
amp null) default character set utf8 collate utf8_unicode_ci)

In PDOConnection.php line 82:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u
se near 'json null, created_at timestamp null, updated_at timestamp null) default cha' at line 1

In PDOConnection.php line 80:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to u
se near 'json null, created_at timestamp null, updated_at timestamp null) default cha' at line 1

sebastiandedeyne commented 6 years ago

I think you might be using a database that doesn't support JSON columns. What MySQL version are you using?

spatie-bot commented 6 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

herryswastika commented 5 years ago

change json to text for MariaDb