11 import glob |
11 import glob |
12 |
12 |
13 from PyQt6.QtCore import pyqtSlot, QObject, QProcess |
13 from PyQt6.QtCore import pyqtSlot, QObject, QProcess |
14 from PyQt6.QtWidgets import QMenu, QDialog, QInputDialog, QLineEdit |
14 from PyQt6.QtWidgets import QMenu, QDialog, QInputDialog, QLineEdit |
15 |
15 |
16 from EricWidgets import EricMessageBox |
16 from eric7 import Utilities |
17 from EricWidgets.EricApplication import ericApp |
17 from eric7.EricGui.EricAction import EricAction |
18 from EricGui.EricAction import EricAction |
18 from eric7.EricWidgets import EricMessageBox |
19 |
19 from eric7.EricWidgets.EricApplication import ericApp |
20 import Utilities |
|
21 |
20 |
22 from ..FlaskCommandDialog import FlaskCommandDialog |
21 from ..FlaskCommandDialog import FlaskCommandDialog |
23 |
22 |
24 |
23 |
25 # TODO: add a submenu with action for the commands with command options |
24 # TODO: add a submenu with action for the commands with command options |
168 ) |
167 ) |
169 self.migrateCreateAct.triggered.connect(self.__createMigration) |
168 self.migrateCreateAct.triggered.connect(self.__createMigration) |
170 self.actions.append(self.migrateCreateAct) |
169 self.actions.append(self.migrateCreateAct) |
171 |
170 |
172 ######################################################### |
171 ######################################################### |
173 ## action to up- and downgrade a databse |
172 ## action to up- and downgrade a database |
174 ######################################################### |
173 ######################################################### |
175 |
174 |
176 self.upgradeDatabaseAct = EricAction( |
175 self.upgradeDatabaseAct = EricAction( |
177 self.tr("Upgrade Database"), |
176 self.tr("Upgrade Database"), |
178 self.tr("&Upgrade Database"), |
177 self.tr("&Upgrade Database"), |