def record_as_run!(filename)
      Preconditions.check_state(filename.match(/^\d\d\d\d\d\d+\-\d\d\d\d\d\d\.sql$/),
                                "Invalid filename[#{filename}]. Must be like: 20120503-173242.sql")
      command = "insert into %s.%s (filename) select '%s' where not exists (select 1 from %s.%s where filename = '%s')" % [Db.schema_name, @table_name, filename, Db.schema_name, @table_name, filename]
      @db.psql_command(command)
    end
def record_as_run!(filename)
      Preconditions.check_state(filename.match(/^\d\d\d\d\d\d+\-\d\d\d\d\d\d\.sql$/),
                                "Invalid filename[#{filename}]. Must be like: 20120503-173242.sql")
      command = "insert into %s.%s (filename) select '%s' where not exists (select 1 from %s.%s where filename = '%s')" % [Db.schema_name, @table_name, filename, Db.schema_name, @table_name, filename]
      @db.psql_command(command)
    end
Inserts a record to indiciate that we have loaded the specified file.