From: Philipp Date: Thu, 29 Dec 2022 22:27:36 +0000 (+0100) Subject: fix SQL X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d6a4c8951f2cb5af72804c9584ca5b685beb1d8;p=friendica.git fix SQL --- diff --git a/database.sql b/database.sql index 2ae33689c1..b7d4ac35d9 100644 --- a/database.sql +++ b/database.sql @@ -845,7 +845,7 @@ CREATE TABLE IF NOT EXISTS `intro` ( CREATE TABLE IF NOT EXISTS `key-value` ( `k` varbinary(50) NOT NULL COMMENT '', `v` mediumtext COMMENT '', - `updated_at` int unsigned NOT NULL COMMENT 'timestamp of the last update', + `updated_at` int unsigned COMMENT 'timestamp of the last update', PRIMARY KEY(`k`) ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='A key value storage'; diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 3b3d6067c1..7ced8172fb 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -894,7 +894,7 @@ return [ "fields" => [ "k" => ["type" => "varbinary(50)", "not null" => "1", "primary" => "1", "comment" => ""], "v" => ["type" => "mediumtext", "comment" => ""], - "updated_at" => ["type" => "int unsigned", "not null" => "0", "comment" => "timestamp of the last update"], + "updated_at" => ["type" => "int unsigned", "comment" => "timestamp of the last update"], ], "indexes" => [ "PRIMARY" => ["k"],