Method: Rho::RHO.check_source_migration
- Defined in:
-
lib/framework/rho/rho.rb,
lib/framework/autocomplete/Rho.rb
249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/framework/rho/rho.rb', line 249 def self.check_source_migration(source) return unless source.has_key?('migrate_version') db = ::Rho::RHO.get_src_db(source['name']) if !get_instance().get_app(APPNAME).on_migrate_source(source['migrate_version'], source) db.execute_batch_sql(source['schema']['sql']) end db.update_into_table('sources', {"schema_version"=>source['schema_version']},{"name"=>source['name']}) end |