anchor.diff:  -behaviour(boss_db_adapter).
   -export([init/1, terminate/1, start/1, stop/0, find/2, find/7]).
   -export([count/3, counter/2, incr/3, delete/2, save_record/2]).
  --export([push/2, pop/2, dump/1, execute/2, execute/3, transaction/2, create_table/3]).
  +-export([push/2, pop/2, dump/1, execute/2, execute/3, transaction/2, create_table/3, table_exists/2, get_migrations_table/1]).
   
   start(_) ->
       ok.
  
positive.code: pack_value(false) ->
      "FALSE".
  
  %% Turns a table definition into an SQL string.
  
  tabledefinition_to_sql(TableDefinition) ->
      string:join(
        [ColumnName ++ " " ++ column_type_to_sql(ColumnType) ++ " " ++
  	   column_options_to_sql(Options) ||
  	  {ColumnName, ColumnType, Options} <- TableDefinition], ", ").
  
  column_type_to_sql(string) ->
      "VARCHAR".
  
  column_type_to_sql(integer) ->
      "INTEGER".
  
  column_type_to_sql(datetime) ->
      "TIMESTAMP".
  
  
negative.code: 
  terminate(Conn) ->
      pgsql:close(Conn).
  
  find(Conn, Id) when is_list(Id) ->
      {Type, TableName, IdColumn, TableId} = boss_sql_lib:infer_type_from_id(Id),
  