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