fix: sql export views as tables getting ignored

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1231 from D-storm/sql_views

fix: sql export views as tables getting ignored
Translated using Weblate (Arabic)

Currently translated at 41.0% (1138 of 2770)
Translated using Weblate (Interlingua)

Currently translated at 52.0% (1441 of 2770)
Translated using Weblate (Portuguese)

Currently translated at 63.2% (1751 of 2770)
Merge remote-tracking branch 'origin/QA_4_2' into QA_4_2