From 9c094807df66e72f4c99bc6629d69cbca9b70912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 22 Mar 2020 18:05:57 +0100 Subject: [PATCH] Add settings table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .../Version1000Date20200313092602.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lib/Migration/Version1000Date20200313092602.php diff --git a/lib/Migration/Version1000Date20200313092602.php b/lib/Migration/Version1000Date20200313092602.php new file mode 100644 index 000000000..3ee5d8819 --- /dev/null +++ b/lib/Migration/Version1000Date20200313092602.php @@ -0,0 +1,46 @@ +hasTable('deck_board_settings')) { + $table = $schema->createTable('deck_board_settings'); + $table->addColumn('board_id', 'bigint', [ + 'notnull' => true, + ]); + $table->addColumn('key', 'string', [ + 'notnull' => true, + 'length' => 100, + ]); + $table->addColumn('user', 'string', [ + 'length' => 64, + ]); + $table->addColumn('value', 'string', [ + 'notnull' => false, + 'length' => 255, + ]); + $table->setPrimaryKey(['board_id', 'key', 'user']); + } + + return $schema; + } + +}