-- IMPORTS
WITH migrations AS (
    SELECT * FROM {{ source('src_exchange_mysql', 'migrations') }}
),


-- LOGIC
migrations_rename AS (

    SELECT
        migrations.id,
        migrations.migration,
        migrations.batch,
        current_timestamp()                                                                          AS _dbt_ran_at

    FROM migrations
),


-- FINAL
final__base_exchange__migrations AS (

    SELECT
        id,
        migration,
        batch,
        _dbt_ran_at

    FROM migrations_rename

) 

SELECT * FROM final__base_exchange__migrations