From d14ac1edf6ad65235a90f83b20f025b84267375d Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Mon, 30 Mar 2020 16:12:05 +0000 Subject: [PATCH] [DATABASE] Add missing table names --- src/Entity/Config.php | 2 +- src/Entity/Notice.php | 1 + src/Entity/Profile.php | 1 + src/Entity/Session.php | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Entity/Config.php b/src/Entity/Config.php index 7fadf6261b..b5fbe8cbe9 100644 --- a/src/Entity/Config.php +++ b/src/Entity/Config.php @@ -85,4 +85,4 @@ class Config 'primary key' => ['section', 'setting'], ]; } -} \ No newline at end of file +} diff --git a/src/Entity/Notice.php b/src/Entity/Notice.php index d1d2c80a13..30127c24af 100644 --- a/src/Entity/Notice.php +++ b/src/Entity/Notice.php @@ -219,6 +219,7 @@ class Notice public static function schemaDef(): array { $def = [ + 'name' => 'notice', 'fields' => [ 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], 'profile_id' => ['type' => 'int', 'not null' => true, 'description' => 'who made the update'], diff --git a/src/Entity/Profile.php b/src/Entity/Profile.php index 3143ae07f6..59052035b0 100644 --- a/src/Entity/Profile.php +++ b/src/Entity/Profile.php @@ -186,6 +186,7 @@ class Profile public static function schemaDef(): array { $def = [ + 'name' => 'profile', 'description' => 'local and remote users have profiles', 'fields' => [ 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], diff --git a/src/Entity/Session.php b/src/Entity/Session.php index 7747ff647a..12e75f9bcc 100644 --- a/src/Entity/Session.php +++ b/src/Entity/Session.php @@ -89,6 +89,7 @@ class Session public static function schemaDef(): array { return [ + 'name' => 'session', 'fields' => [ 'id' => ['type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'session ID'], 'session_data' => ['type' => 'text', 'description' => 'session data'],