]>
gitweb.michael.orlitzky.com - mailshears.git/blob - lib/mv/plugins/roundcube.rb
3 require 'common/roundcube_plugin'
8 include RoundcubePlugin
12 def mv_domain(from
, to
)
13 # Roundcube doesn't have a concept of domains.
17 sql_queries
= ['UPDATE users SET username = $1 WHERE username = $2;']
20 connection
= PGconn
.connect(@db_host,
28 sql_queries
.each
do |sql_query
|
29 connection
.query(sql_query
, [to
, from
])
35 # Pretend like we're database-agnostic in case we ever are.
36 raise DatabaseError
.new(e
)