Module: StructureSqlMergeDriver::MySQL
- Defined in:
- lib/tt-git-merge-structure-sql.rb
Constant Summary collapse
- RE_DUMP_TIMESTAMP =
/^-- Dump completed on \K.+$/- RE_AUTO_INCREMENT_VALUE =
/^\)(?= ).*\K AUTO_INCREMENT=\d+(?=.*;$)/- RE_VERSION =
/^INSERT INTO schema_migrations \(version\) VALUES \('(\d+)'\);\s+/- RE_VERSIONS =
/#{RE_VERSION}+/
Class Method Summary collapse
Class Method Details
.match?(content) ⇒ Boolean
116 117 118 |
# File 'lib/tt-git-merge-structure-sql.rb', line 116 def match?(content) /^-- MySQL dump / === content end |
.merge!(*contents) ⇒ Object
120 121 122 123 124 |
# File 'lib/tt-git-merge-structure-sql.rb', line 120 def merge!(*contents) (*contents) scrub_auto_increment_values!(*contents) merge_versions!(*contents) end |