From d9d7eaf619c434b760725d4a55f53fc5ed99486e Mon Sep 17 00:00:00 2001 From: Smita Kumari Date: Mon, 8 Jun 2015 08:36:52 +0530 Subject: [PATCH] index creation migration file Signed-off-by: Smita Kumari --- ...92040_add_report_id_index_to_incidents.php | 22 +++++++++++++++++++ ..._add_dev_report_index_to_notifications.php | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100755 config/Migrations/20150607192040_add_report_id_index_to_incidents.php create mode 100755 config/Migrations/20150607192459_add_dev_report_index_to_notifications.php diff --git a/config/Migrations/20150607192040_add_report_id_index_to_incidents.php b/config/Migrations/20150607192040_add_report_id_index_to_incidents.php new file mode 100755 index 00000000..60fa3e0e --- /dev/null +++ b/config/Migrations/20150607192040_add_report_id_index_to_incidents.php @@ -0,0 +1,22 @@ +table('incidents'); + $table->addIndex( + [ + 'report_id', + ]); + $table->update(); + } +} diff --git a/config/Migrations/20150607192459_add_dev_report_index_to_notifications.php b/config/Migrations/20150607192459_add_dev_report_index_to_notifications.php new file mode 100755 index 00000000..cfd48588 --- /dev/null +++ b/config/Migrations/20150607192459_add_dev_report_index_to_notifications.php @@ -0,0 +1,22 @@ +table('notifications'); + $table->addIndex([ + 'developer_id', + 'report_id', + ]); + $table->update(); + } +}