-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add table_id index to oc_tables_columns #1078
base: main
Are you sure you want to change the base?
Conversation
One thing I missed when discussing this earlier, we should still add the indices to the existing migration files where the tables are created. That way the index is immediately there on new installations. |
991fe38
to
3794252
Compare
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
3794252
to
114cb8a
Compare
@@ -59,6 +59,8 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt | |||
'notnull' => false, | |||
]); | |||
$table->setPrimaryKey(['id']); | |||
|
|||
$table->addIndex(["ownership"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to also pass the index name as the second parameter
@grnd-alt @juliushaertl Why are we adding an index? |
To improve the performance of database queries that use those columns to filter for entries. |
Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
114cb8a
to
0d97014
Compare
No description provided.