diff --git a/compass/database/migrations/2015_12_28_221004_micropub.php b/compass/database/migrations/2015_12_28_221004_micropub.php index be4ee54..8a92b81 100644 --- a/compass/database/migrations/2015_12_28_221004_micropub.php +++ b/compass/database/migrations/2015_12_28_221004_micropub.php @@ -13,8 +13,8 @@ class Micropub extends Migration public function up() { Schema::table('databases', function ($table) { - $table->string('micropub_endpoint', 255); - $table->string('micropub_token', 1024); + $table->string('micropub_endpoint', 255)->nullable(); + $table->string('micropub_token', 1024)->nullable(); }); } diff --git a/compass/database/migrations/2017_05_21_093158_add_ping_urls.php b/compass/database/migrations/2017_05_21_093158_add_ping_urls.php index 4a381f8..9545bb6 100644 --- a/compass/database/migrations/2017_05_21_093158_add_ping_urls.php +++ b/compass/database/migrations/2017_05_21_093158_add_ping_urls.php @@ -13,7 +13,7 @@ class AddPingUrls extends Migration public function up() { Schema::table('databases', function ($table) { - $table->string('ping_urls', 1024); + $table->string('ping_urls', 1024)->nullable(); }); } diff --git a/compass/database/schema.sql b/compass/database/schema.sql index 5e5d275..a6a7e09 100644 --- a/compass/database/schema.sql +++ b/compass/database/schema.sql @@ -12,9 +12,9 @@ CREATE TABLE `databases` ( `write_token` varchar(255) DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `created_at` datetime DEFAULT NULL, - `micropub_endpoint` varchar(255) NOT NULL, - `micropub_token` varchar(1024) NOT NULL, - `ping_urls` varchar(1024) NOT NULL, + `micropub_endpoint` varchar(255) DEFAULT NULL, + `micropub_token` varchar(1024) DEFAULT NULL, + `ping_urls` varchar(1024) DEFAULT NULL, `timezone` varchar(100) NOT NULL DEFAULT 'UTC', `metric` boolean NOT NULL DEFAULT 1, PRIMARY KEY (`id`), diff --git a/compass/public/assets/map.js b/compass/public/assets/map.js index 5c2dbe5..61048ea 100644 --- a/compass/public/assets/map.js +++ b/compass/public/assets/map.js @@ -10,8 +10,8 @@ var opts = { maxZoom: 24, zoomOffset: -1, tileSize: 512, - id: 'mapbox/light-v10', - accessToken: 'pk.eyJ1IjoiYWFyb25wayIsImEiOiJja3A0eXV2ZXIwMGt3MnVuc2Uzcm1yYzFuIn0.-_qwPOLRiQk8t56xs6vkfg' + id: 'mapbox/light-v11', + accessToken: 'pk.eyJ1IjoiZGF2aWRlZG1vbmRzb24iLCJhIjoiY2xjbmNmbXg5MTd6bzN2cDgycDNvYzEzdCJ9.cQLK-qlwLNH2qFmglWhwyQ' }; L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', opts).addTo(map);