Browse Source

micropub_endpoint, micropub_token and ping_urls are nullable.

pull/51/head
David Edmondson 1 year ago
parent
commit
ee74b25421
3 changed files with 6 additions and 6 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

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

@ -13,8 +13,8 @@ class Micropub extends Migration
public function up() public function up()
{ {
Schema::table('databases', function ($table) { 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() public function up()
{ {
Schema::table('databases', function ($table) { 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, `write_token` varchar(255) DEFAULT NULL,
`created_by` int(11) DEFAULT NULL, `created_by` int(11) DEFAULT NULL,
`created_at` datetime 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', `timezone` varchar(100) NOT NULL DEFAULT 'UTC',
`metric` boolean NOT NULL DEFAULT 1, `metric` boolean NOT NULL DEFAULT 1,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),

Loading…
Cancel
Save