mirror of
https://gitlab.com/cief-data/dbt_cloud.git
synced 2026-08-19 04:14:00 +00:00
init from dbt cloud hosting repo
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user