From 88cfab4f329c7ee1f360be1ad7d90cf767da3720 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 17 Jul 2024 10:49:11 -0100 Subject: feat(upgrade): migration attributes Signed-off-by: Maxence Lange d Signed-off-by: Maxence Lange f Signed-off-by: Maxence Lange d Signed-off-by: Maxence Lange --- lib/public/Migration/Attributes/CreateTable.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lib/public/Migration/Attributes/CreateTable.php (limited to 'lib/public/Migration/Attributes/CreateTable.php') diff --git a/lib/public/Migration/Attributes/CreateTable.php b/lib/public/Migration/Attributes/CreateTable.php new file mode 100644 index 00000000000..600d9bf4b9f --- /dev/null +++ b/lib/public/Migration/Attributes/CreateTable.php @@ -0,0 +1,20 @@ +getTable()) ? 'Creation of a new table' : 'Creation of new table \'' . $this->getTable() . '\''; + $definition .= empty($this->getColumns()) ? '' : ' with columns ' . implode(', ', $this->getColumns()); + return $definition; + } +} -- cgit v1.2.3