From 0da1c1614508e532f5ce4cfcbf8e12efeddd1dff Mon Sep 17 00:00:00 2001 From: Jimmy Huynh Date: Sat, 13 Mar 2021 00:37:25 +0100 Subject: =?UTF-8?q?=F0=9F=97=83=20Add=20migration:=20'tags'=20column=20(lo?= =?UTF-8?q?ngtext)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jimmy Huynh --- lib/Migration/Version150302Date20210312231251.php | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 lib/Migration/Version150302Date20210312231251.php diff --git a/lib/Migration/Version150302Date20210312231251.php b/lib/Migration/Version150302Date20210312231251.php new file mode 100644 index 000000000..dddfbc0a9 --- /dev/null +++ b/lib/Migration/Version150302Date20210312231251.php @@ -0,0 +1,52 @@ +hasTable('news_items')) { + $table = $schema->getTable('news_items'); + $table->addColumn('tags', 'text', [ + 'notnull' => false + ]); + } + + return $schema; + } + + /** + * @param IOutput $output + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` + * @param array $options + */ + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { + } +} -- cgit v1.2.3