Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compass/database/migrations/2015_12_28_221004_micropub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down
6 changes: 3 additions & 3 deletions compass/database/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down
4 changes: 2 additions & 2 deletions compass/public/assets/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down