Skip to content

Commit

Permalink
restore replace database from dump schema table creation
Browse files Browse the repository at this point in the history
  • Loading branch information
PNixx committed Feb 13, 2025
1 parent 78eba12 commit 275f28f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def create_schema_dumper(options) # :nodoc:
# @option [Boolean] single_line
# @return [String]
def show_create_table(table, single_line: true)
sql = do_system_execute("SHOW CREATE TABLE `#{table}`")['data'].try(:first).try(:first)
sql = do_system_execute("SHOW CREATE TABLE `#{table}`")['data'].try(:first).try(:first).gsub("#{@config[:database]}.", '')
single_line ? sql.squish : sql
end

Expand Down

0 comments on commit 275f28f

Please sign in to comment.