Commit Graph

1975 Commits

Author SHA1 Message Date
Martin Kleusberg 44eb2d4f99 Add better handling of multiple schemata in the Database Structure tab
Commit 532fcd3f6b added support for
multiple database schemata to the backend code. While doing this, it
removed support for showing temporary database objects in the user
interface.

This functionally is partially reimplemented by this commit. With this
commit temporary database objects are shown in the Database Structure
tab and in the Db Structure dock. Unlike before however, they are
visually separated from 'normal' database objects. Also this commit
tries to make use of the new schema handling code wherever possible to
also separate temporary objects programatically from the normal ones.
This wasn't done in earlier versions and effectively was a source of
all sorts of errors.

This commit still lacks support for temporary tables in the foreign key
editor and in the Browse Data tab. Also a substantial amount of testing
is still required.
2017-09-03 21:36:06 +02:00
Martin Kleusberg c616b39478 Don't allow selection of tables/indices in VACUUM dialog
Remove the feature to select individual tables and indices to vacuum in
the vacuum dialog. Turns out SQLite doesn't support this (and apparently
never has). If you didn't select all tables at once, it would just print
errors to the console output. I have no idea why we ever implemented it
this way. However, the dialog could be reused to allow selection of
database schemata to compact - and this actually does work.
2017-09-03 21:25:29 +02:00
Martin Kleusberg 829e3107e5 Fix not working Save button in the message box when closing a database
When closing a modified database a message box asking whether to save
the changes is popping up. The buttons were changed from Yes/No/Cancel
to Save/No/Cancel by commit 44361df4e9.
However, the code for this particular message box was still checking for
a Yes button click, and thus wasn't reacting on the Save button at all.

See issue #1117.
2017-09-03 13:22:31 +02:00
Martin Kleusberg 532fcd3f6b Add initial support for multiple database schemata
This adds initial basic support for handling different database schemata
at once to the backend code. This is still far from working properly but
shouldn't break much either - mostly because it's not really used yet in
the user interface code.
2017-09-03 13:22:21 +02:00
Martin Kleusberg 4339119377 dbhub: Support pushing to different branches than "master" 2017-09-03 13:20:27 +02:00
Justin Clift 26f7cfbca4 Ensure the AppImage build includes SQLCipher 2017-09-02 22:10:31 +01:00
Justin Clift 70046f1dbd Automatically add AppImage builds to our GitHub releases
Thanks @probonopd :)
2017-09-02 20:39:37 +01:00
Martin Kleusberg 289c5c63e3 Clean up code 2017-09-02 11:55:49 +02:00
Martin Kleusberg c655727cdd Don't automatically commit all changes when editing a table column
Editing a table column in the Edit Table dialog accidentally committed
all prior changes to the database, effectively clicking the 'Write
Changes' button while working on the table. This is no problem if your
working on a clean database, but is a problem if you have made other
changes before. In the latter case you lose the ability to roll them
back and you can't use the Cancel button in the Edit Table dialog
anymore.

See issue #1116.
2017-09-02 11:24:16 +02:00
Martin Kleusberg 9b77055b1d Fix index updating when removing an indexed column from a table
When changing an indexed column from a table using the Edit Table dialog
we try to update the corresponding indices as well. So if a column is
renamed all references to it in the indices are renamed accordingly.
This, however, didn't take into account that you can also remove
columns. While trying to update the column to nothing, the application
would crash. This is fixed by this commit. It doesn't crash anymore and
now removes the column from the index as expected.

See issue #1115.
2017-09-02 10:38:21 +02:00
Martin Kleusberg ab7f0cf4af dbhub: Ask user what to do when trying to open an updated database
If there is a local clone of a remote database but the remote database
has been updated to a newer version in the meantime, we're now asking
the user what to do. The choice is between downloading the newer version
and overwriting the local one with all the changes it might have
contained or opening the local version and not downloading anything.

See issue #1096.
2017-09-01 18:54:55 +02:00
Justin Clift ddd08a4f9d Fix typo in Russian translation
As pointed out by @Vort in #1107
2017-09-01 14:16:12 +01:00
Martin Kleusberg 300affa839 dbhub: Optimise code 2017-09-01 13:56:05 +02:00
Martin Kleusberg a84300c806 dbhub: Improve file size format
As per suggestion by @chrisjlocke, this commit removes the trailing
'.00' bit for round numbers.
2017-09-01 13:37:06 +02:00
Martin Kleusberg dea1a1ce95 Add flag icon for Egyptian Arabic 2017-09-01 13:34:49 +02:00
Martin Kleusberg 88ee1ac535 dbhub: Tweak certificate UI in the preferences dialog
Don't highlight all the horizonzal headers when selecting a certificate
row in the preferences dialog.

See issue #1087.
2017-09-01 13:08:31 +02:00
Martin Kleusberg 437163054c dbhub: Fix wrong file size being shown for very large files
See issue #1113.
2017-09-01 12:44:02 +02:00
Martin Kleusberg f830f4265c dbhub: Fix progress dialog for very large files
See issue #1095.
2017-09-01 12:36:20 +02:00
Martin Kleusberg 49e6733dac dbhub: Enforce name and commit message length limits in push dialog
See issue #1097.
2017-09-01 12:05:45 +02:00
Martin Kleusberg 6cac6643f1 dbhub: Remove closing "." from the progress dialog
See issue #1095.
2017-09-01 11:27:28 +02:00
Martin Kleusberg 9fa8ffba2e cipher: Change tab order in encryption dialog
Change the tab order in the encryption dialog so that the password
editor is the widget that is selected by default. That makes it possible
to type in the passphrase right away without navigating to the widget
first.
2017-09-01 10:15:47 +02:00
Martin Kleusberg 5a922fff83 cipher: Fix passphrases containing single quotes
This fixes a regression introduced in d1e3e98006 which makes it
impossible to open encrypted databases with single quote characters in
their passphrase.

See issue #1105.
2017-09-01 10:12:54 +02:00
Martin Kleusberg 516ff44789 dbhub: Redownload database if local copy has been deleted
See issue #1111.
2017-09-01 09:57:44 +02:00
Martin Kleusberg 0160fb7462 dbhub: Add tooltip to cog tool button
See issue #1111.
2017-09-01 09:47:13 +02:00
Justin Clift 6fe9b4ad6b Merge pull request #1114 from Mischanix/1099-installer-restarts-without-prompt
Pass /norestart to vcredist installer
2017-08-31 19:12:45 +01:00
Robert Nix fea164a5e1 Pass /norestart to vcredist installer
This prevents it from automatically trying to restart
the user's computer without any prompt.
2017-08-31 13:02:19 -05:00
Justin Clift db88d6e952 Merge pull request #1102 from da2x/master
Change some OK buttons to Save buttons
2017-08-25 14:34:43 +01:00
Justin Clift 3e0f9ddebf Leave the vacuum dialog button as-is 2017-08-25 14:33:51 +01:00
Justin Clift 96d4413e3f Merge pull request #1101 from da2x/patch-1
Update compacting warning string
2017-08-25 10:09:17 +01:00
Justin Clift cf15fbf3c5 Update version number to 3.10.99, which indicates a development version of 3.11.0 2017-08-25 10:08:25 +01:00
Daniel Aleksandersen 44361df4e9 Change some OK buttons to Save buttons 2017-08-25 07:05:58 +02:00
Daniel Aleksandersen 809690628e Update compacting warning string 2017-08-25 03:55:35 +02:00
Justin Clift e30d19dbb4 Update current release with v3.10.0 details 2017-08-22 09:51:03 +01:00
Justin Clift bb621ff398 Updated for DB4S 3.10.0 release 2017-08-20 00:29:45 +01:00
Justin Clift 85613ea892 Merge pull request #1091 from bssthu/master
Update Chinese translation
v3.10.0
2017-08-18 19:15:39 +01:00
Justin Clift 04e64f4844 Update version numbers to 3.10.0 2017-08-18 18:35:59 +01:00
bssthu dba87f0f3f update Chinese translation 2017-08-19 01:34:29 +08:00
Justin Clift 0c20582edb Stop crash causing event storm for uploading progress dialog 2017-08-17 21:59:50 +01:00
Justin Clift 503a329b70 Update translation files with the recent source string changes 2017-08-16 19:51:03 +01:00
bss, shaoshi d0e8370574 Update Chinese translation (#1085) 2017-08-16 19:48:14 +01:00
Martin Kleusberg 84615258af dbhub: Push databases using the POST method instead of PUT 2017-08-15 21:22:05 +02:00
Martin Kleusberg 60a48ce9ec Fix attaching not encrypted databases in the SQLCipher build
Even when trying to attach a non-encrypted database in the SQLCipher
build we would try to give a passphrase - though an empty one. This
yields an invalid SQL statement, so attaching would never work. This is
fixed by this commit.

See issue #1088.
2017-08-15 11:23:51 +02:00
Martin Kleusberg c3ab20b6b5 Fix indentation 2017-08-15 11:13:30 +02:00
Martin Kleusberg d1f90994fb Activate attach menu item right after opening a database
The 'attach database' menu item was only activated after making changes
to the database and saving them. With this commit it's activated right
after opening a database, too.
2017-08-15 11:13:29 +02:00
Justin Clift 778eaec72e Added 3.10.0-beta2 to the issue template 2017-08-14 23:11:31 +01:00
Gihun Ham 5ba7d5f9e2 Korean Translation 2017-08-14 12:31:18 +01:00
Justin Clift a8b62dd768 Update source strings for Korean translation 2017-08-14 05:33:20 +01:00
Gihun Ham b59c7d5f0e Korean translation (#1083) 2017-08-14 05:30:39 +01:00
Justin Clift 95f9e740ef Update version number to 3.9.200, which we're using for 3.10.0-beta2 v3.10.0-beta2 2017-08-13 21:00:20 +01:00
Martin Kleusberg bbbadba732 dbhub: Open the user's directory by default
When 'logging in' or refreshing the view, look for the user's directory
and open it by default.
2017-08-13 15:12:50 +02:00