Browse Source

Merge c499aed783 into da26affe26

pull/51/merge
David Edmondson 1 year ago
committed by GitHub
parent
commit
a070db0889
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions
  1. +2
    -2
      compass/database/migrations/2015_12_28_221004_micropub.php
  2. +1
    -1
      compass/database/migrations/2017_05_21_093158_add_ping_urls.php
  3. +3
    -3
      compass/database/schema.sql
  4. +2
    -2
      compass/public/assets/map.js

+ 2
- 2
compass/database/migrations/2015_12_28_221004_micropub.php View File

@ -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();
});
}

+ 1
- 1
compass/database/migrations/2017_05_21_093158_add_ping_urls.php View File

@ -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();
});
}

+ 3
- 3
compass/database/schema.sql View File

@ -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`),

+ 2
- 2
compass/public/assets/map.js View File

@ -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);

Loading…
Cancel
Save