mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-19 01:15:04 -05:00
Added support for executing the query at the cursor position in the query tool. #6841
This commit is contained in:
@@ -8,6 +8,8 @@ Create Date: 2024-05-17 19:35:03.700104
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from pgadmin.model import Preferences
|
||||
from pgadmin.model import db
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'ac2c2e27dc2d'
|
||||
@@ -17,6 +19,10 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
db.session.query(Preferences).filter(
|
||||
Preferences.name == 'execute_query').update({'name': 'execute_script'})
|
||||
db.session.commit()
|
||||
|
||||
meta = sa.MetaData()
|
||||
meta.reflect(op.get_bind(), only=('user_macros',))
|
||||
user_macros_table = sa.Table('user_macros', meta)
|
||||
|
||||
Reference in New Issue
Block a user