aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPIndexesController.m
Commit message (Collapse)AuthorAgeFilesLines
* Minor changesMax2018-05-141-1/+0
|
* Replace all non-cyclic NSAutoreleasepools with @autoreleasepoolMax2018-05-031-121/+119
|
* merge SPTableStructure (part of #2789)Max2018-01-201-1/+0
|
* Merge SPDatabaseDocument (part of #2789)Max2018-01-201-1/+0
|
* Change the way index deletion works (part of #2811)Max2017-06-061-60/+104
| | | | | | * Instead of trying to figure out if an index is used by an FK ahead of time Sequel Pro will now simply run the query and check for the error code (and only for error 1553 will it attempt to also remove the FK) * This means that a user will receive two remove dialogs in this rare case, but I think that is actually preferable. Common wisdom shows that users never read the first warning dialog, so in the past they may have agreed to something that they didn’t intend to do. The second dialog should actually make them pause and read it. Also there is a different confirmation button now. * This also fixes the code to detect which FK in particular MySQL is referring to. SP should now correctly handle compound indexes and multi-column FKs as well as ambiguous results.
* Now that was some silly code… (part of #2811)Max2017-06-051-1/+4
|
* #2705: FULLTEXT indexes should not require a column size prefix.Stuart Connolly2017-03-171-125/+81
|
* Minimal refactoringMax2015-10-311-2/+2
|
* Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()Max2015-10-201-2/+5
| | | | This should also eliminate a few use-after-free crashes
* Add some info which might help a bit with debugging threading issuesMax2015-07-021-2/+2
|
* Add support for FULLTEXT indexes in InnoDB tablesMax2015-04-061-7/+9
| | | | Fixes #1917
* Formalize [x release], x = nil; conventionMax2015-01-041-7/+7
| | | | | Take this commit as a proposal to formalize our existing "[x release], x = nil;" convention by introducing a macro for it. Feel free to revert this commit if you see issues with the approch or implementation.
* Add a hidden preference to control the size of the UI's monospaced font.Stuart Connolly2014-05-261-4/+8
|
* Update URL in source file header to point to GitHub.Stuart Connolly2014-01-261-1/+1
|
* Remove SVN property placeholder.Stuart Connolly2014-01-261-2/+0
|
* Cleaned up Format string is not a string literal (potentially insecure) errorsMarius Ursache2013-11-091-1/+1
|
* - Fix all the Xcode 4.6.2 build warnings, and tweak warning settings to ↵rowanbeentje2013-05-211-1/+1
| | | | enable some more
* Changing SP_REFACTOR macro to SP_CODAsqlprodev2013-02-141-25/+25
|
* Remove useless init and dealloc method comments and perform general tidy up.stuconnolly2013-01-221-17/+8
|
* - Add names for most threads created by Sequel Pro for easier debugrowanbeentje2012-10-141-2/+3
|
* Change Sequel Pro's license from GPL (version 2) to MIT.stuconnolly2012-07-251-12/+19
|
* Move the table structure's loading logic into it's own category.stuconnolly2012-07-041-1/+3
|
* Fix memory leaks.stuconnolly2012-05-021-1/+5
|
* When opening the add index sheet make sure we're using the correct table ↵stuconnolly2012-04-301-7/+14
| | | | reload call, so the correct validation is done. Fixes issue #1292.
* Add index sheet improvements:stuconnolly2012-04-301-25/+58
| | | | | | - FULLTEXT index type should only be available for MyISAM tables - Index prefix lengths are ignored when specified for FULLTEXT indexes so don't require one (fixes issue #1306)
* - Clean up SPMySQL and QueryKit inclusion and search methods, which should ↵rowanbeentje2012-03-271-4/+0
| | | | | | | fix nightly builds - Fix warnings
* tweaks to compile on Xcode 4 / 10.6 SDK for SP_REFACTORsqlprodev2012-03-271-0/+4
|
* - Rework SPTableData PRIMARY KEY and UNIQUE KEY parsing to use SPSQLParser ↵rowanbeentje2012-03-221-16/+1
| | | | | | | | | | instead of regexes - Support multiple primary keys in the SPTableData parse - If possible, use primary keys to preserve table content selection instead of row indexes - Improve SPTableData primary keys method to use cached value instead of using another query - Preserve selection when filtering tables if appropriate
* Warning: this branch commit is largely untested, and known to throw ↵rowanbeentje2012-02-231-7/+7
| | | | | | | | | | | | exceptions as database structure retrieval is currently missing! Further work on SPMySQLFramework integration: - Improve SPMySQL framework build settings including correct ppc builds and a Distribution configuration for the build distributions to match - Add new convenience querying and result methods to the framework - Amend Sequel Pro source to use the new SPMySQL.framework methods everywhere, replacing MCPKit methods where they differ and improving some functions - Remove MCPKit from the source - Fix a number of warnings on Release-style builds
* Improve index addition, especially where key sizes are required:rowanbeentje2012-01-111-3/+28
| | | | | | | - Fix exceptions caused by the sizes column formatter requiring a NSNumber - When displaying the indexes view ensure the sizes column is hidden by default, as the advanced view is closed - unless a field with a required size has been selected - If a field with a required size has been selected, don't hide the sizes column when collapsing the advanaced view
* - Prevent export and indexes controller awakeFromNib: routines from being ↵rowanbeentje2011-08-251-0/+10
| | | | | | | run multiple times - Fix crashes and exceptions when using "Use monospaced fonts" or "Display vertical grid lines" preferences after closing at least one window
* Fixes for issue #1098:stuconnolly2011-07-041-3/+4
| | | | | | - Fix logic for enabling/disabling the index storage type popup button when changing the index type. - Add a number formatter to the index length field.
* merging SP_REFACTOR branch with trunksqlprodev2011-05-191-2/+53
|
* - Add the ability to double-click in empty areas of the main tableviews to ↵rowanbeentje2011-04-251-0/+8
| | | | add new rows/records
* Make some minor changes after reviewing r3271:rowanbeentje2011-04-141-3/+3
| | | | | | - Fix a few encoding issues - Recode a few [NSApp keyWindow] uses back to [SPDatabaseDocument parentWindow] following discussion; possibly for later refactoring into use of an error method
* initial commit of SP_REFACTOR ifdefs, the start of a long quest to separate ↵sqlprodev2011-04-111-9/+19
| | | | UI code from functional code
* - Fix more compiler warningsrowanbeentje2011-03-151-8/+9
| | | | | - Tweak README
* fixed compiler warningssqlprodev2011-03-011-0/+4
|
* - Fix errors creating indexes, addressing Issue #946rowanbeentje2011-01-111-8/+8
| | | | | | - Move index type query part before the column list to fix advanced use errors - Correct spelling of -_removeIndexUsingDetails:
* - Rework the Add Index indexes menu and the auto_increment index required ↵rowanbeentje2011-01-041-14/+43
| | | | | | | | | | | | | menu to use tag-based values when generating queries, allowing localisation of menu contents without using those localised values in queries. This addresses I$ - Remove the ability to specify a FULLTEXT auto_increment index, as I believe this isn't possible. - Prevent sheet reuse from specifying invalid storage types for PRIMARY KEYs - Fix exceptions when adding indexes to a table where every field is already indexed - Fix initialField/indexedFieldNames check to improve on r3061 - Fix toggling advanced index view after closing the sheet with the view open - Update localisable strings
* • fixed by mistake setting of initialField to nil instead of ↵Bibiko2011-01-031-1/+1
| | | | | | initialFiledNames if initialField is not nil - this should fix i933
* Protect against potentially over-releasing.stuconnolly2010-12-281-1/+1
|
* When opening the add index sheet, the initial suggested field should be one ↵stuconnolly2010-12-271-1/+23
| | | | that is not already indexed. This completes the implementation of issue #928.
* When adding a new index, exclude fields that have already been added from ↵stuconnolly2010-12-261-2/+6
| | | | the drop down list. Part of issue #928.
* When adding a new index, as well as checking for an existing primary key ↵stuconnolly2010-12-251-4/+18
| | | | also check for a composite primary key. Part of issue #928.
* Add a new category to SPDatabaseDocument, allowing code cleanup and moving ↵rowanbeentje2010-11-031-2/+2
| | | | | | | | | | | central functionality out of SPTablesList: - Centralise control over table loading, moving it away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Centralise control over the main tab view, moving control away from SPTablesList and into SPDatabaseDocument and the new SPDatabaseViewController category - Simplify and clean up view loading logic - Improve thread safety - Update localisable strings
* Update indexes controller constants.stuconnolly2010-10-191-5/+5
|
* Considering nearly every class uses constants, import it via the prefix header.stuconnolly2010-10-191-1/+0
|
* Fix a bug when adding a PRIMARY KEY index, introduced in r2742. Fixes issue ↵stuconnolly2010-10-121-2/+2
| | | | #863.
* Add support for adding SPATIAL indexes on MyISAM tables. Also, update ↵stuconnolly2010-10-081-6/+18
| | | | Localizable.strings.