From ee74b25421908c58ca7f95d23fb85d96f0f84f2d Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Sun, 8 Jan 2023 16:58:43 +0000 Subject: [PATCH] micropub_endpoint, micropub_token and ping_urls are nullable. --- compass/database/migrations/2015_12_28_221004_micropub.php | 4 ++-- .../database/migrations/2017_05_21_093158_add_ping_urls.php | 2 +- compass/database/schema.sql | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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`),