-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Dataset database tables as Asset (#42023)
* feat(models/asset): rename index idx_dataset_alias_dataset_event_alias_id as idx_asset_alias_asset_event_alias_id * feat(models/asset): rename index idx_dataset_alias_dataset_event_event_id as idx_asset_alias_asset_event_event_id * feat(models/asset): rename table dataset_alias_dataset_event as asset_alias_asset_event * feat(models): rename dataset_alias as asset_alias * rename table "dataset_alias" as "asset_alias" * rename table "dataset_alias_dataset" as "asset_alias_dataset" * rename index "idx_dataset_alias_dataset_alias_id" as "idx_asset_alias_asset_alias_id" * rename index "idx_dataset_alias_dataset_alias_dataset_id" as "idx_asset_alias_asset_dataset_id" * rename fk constraint "ds_dsa_alias_id" as "a_aa_alias_id"" * change reference column from "dataset_alias.id" to "asset_alias.id" * rename table "dag_schedule_dataset_alias_reference" as "dag_schedule_asset_alias_reference" * rename column "dataset_alias" as "asset_alias" * rename fk constraint "dsdar_dataset_alias_fkey" as "dsaar_asset_alias_fkey" * change reference column from "dataset_alias.id" to "asset_alias.id" * rename index "idx_dag_schedule_dataset_alias_reference_dag_id" as "idx_dag_schedule_asset_alias_reference_dag_id" * in table "asset_alias_asset_event" * change fk alias_id reference from "dataset_alias.id" to "asset_alias.id" * in fk constraint "dss_de_alias_id" * change reference column from "dataset_alias.id" to "asset_alias.id" * feat(models/asset): rename table "dag_schedule_dataset_reference" as "dag_schedule_asset_reference" * rename fk constraint "dsdr_dataset_fkey" as "dsar_dataset_fkey" * rename fk constraint "dsdr_dag_id_fkey" as "dsar_dag_id_fkey" * rename index "idx_dag_schedule_dataset_reference_dag_id" as "idx_dag_schedule_asset_reference_dag_id" * feat(models): rename table "task_outlet_dataset_references" as "task_outlet_asset_references" * rename fk constraint "todr_dataset_fkey" as "todr_asset_fkey" * rename index "idx_task_outlet_dataset_reference_dag_id" as "todr_dataset_fkey" * feat(models/asset): rename table "dagrun_dataset_event" as "dagrun_asset_event" * rename index "idx_dagrun_dataset_events_dag_run_id" as "idx_dagrun_asset_events_dag_run_id" * rename index "idx_dagrun_dataset_events_event_id" as "idx_dagrun_asset_events_event_id" * feat(models/dag): rename column "schedule_dataset_references" as "schedule_asset_references" in table "dag" * feat(models/asset): rename table "dataset_dag_run_queue" as "asset_dag_run_queue" * rename index "idx_dataset_dag_run_queue_target_dag_id" as "idx_asset_dag_run_queue_target_dag_id" * feat(models/dag): rename consumed_dataset_events as consumed_asset_events * feat(models/asset): rename table "dataset_event" as "asset_event" * feat(models/asset): rename index idx_dataset_id_timestamp as idx_asset_id_timestamp * feat(models/asset): rename idx_asset_alias_asset_dataset_id as idx_asset_alias_asset_asset_id * feat(models/asset): rename dataset as asset in fks * feat(models/asset): rename asset_alias_dataset as asset_alias_asset * feat(models/asset): rename index idx_dataset_alias_name_unique as idx_asset_alias_name_unique * feat(models/asset): rename idx_dataset_name_uri_unique as idx_asset_name_uri_unique * feat(models/asset): rename dsar_dataset_fkey as dsar_asset_fkey * feat(models/asset): rename datasetdagrunqueue_pkey as assetdagrunqueue_pkey * feat(models/asset): rename ddrq_dataset_fkey as ddrq_asset_fkey * feat(models/asset): rename ddrq fks as adrq fks * feat(models/asset): rename dsdr keys as dsar keys * feat(models/asset): rename todr keys as toar keys * feat(migrations): initial migration files * feat(migrations): add utility functions _rename_index and _rename_fk_constraint * feat(migrations): add _rename_pk_constraint utility function * feat(migrations): update migration files to reflect current model change (except for fk reference table update) * feat: rename dataset_id as asset_id * feat(api_connexion): rename dataset_id as asset_id * feat: rename dataset.uri as asset.uri * feat: rename dataset_expression as asset_expression * feat(listeners): rename argument dataset_alias as asset_alias * feat(utils/types): rename DagRunType.DATASET_TRIGGERED as DagRunType.ASSET_TRIGGERED * feat: rename dataset_triggered_dag_info as asset_triggered_dag_info * feat: rename dataset as asset * feat(models/asset): rename dss_de as aa_ae * feat(models/asset): rename dsdar as dsaar * feat(migrations): wrap up the upgrade part (except for fk upgrade) * feat(migrations): rename migration file * docs(newsfragment): add place holder newsfragment * build: generate migration related files * feat(migrations): wrap up upgrade script * feat(migrations): wrap up downgrade script * fix: fix missing frontend change * fix(migrations): fix fk_constraint rename for association tables * fix: fix missing dataset related changes due to rebasing * feat(migrations): reorder migrations * feat(migrations): fix error for sqlite * feat(models/asset): remove redundant fk constraint aa_ae_alias_id and aa_ae_event_id * feat(migrations): remove redundant fk constraint a_aa_asset_id and a_aa_alias_id * build: generate db migration side files * feat(migrations): add postgresql support * feat(migrations): add mysql support for downgrade * fix: rename reference_table as referent_table * refactor: reorganize 0038 migration * docs: improve endpoint asset_triggered change description * docs: add description to endpoint renaming and note it in newsfragments
- Loading branch information
Showing
79 changed files
with
3,176 additions
and
2,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.