Skip to content

Commit

Permalink
drop older index table if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Aug 18, 2023
1 parent 8517d98 commit ae7e822
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker/mariadb/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ insert into metadata_aspect_v2 (urn, aspect, version, metadata, createdon, creat
now(),
'urn:li:corpuser:__datahub_system'
);


drop table if exists metadata_index;
3 changes: 3 additions & 0 deletions docker/mysql-setup/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ INSERT INTO metadata_aspect_v2
SELECT * FROM temp_metadata_aspect_v2
WHERE NOT EXISTS (SELECT * from metadata_aspect_v2);
DROP TABLE temp_metadata_aspect_v2;


drop table if exists metadata_index;
3 changes: 3 additions & 0 deletions docker/mysql/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ INSERT INTO metadata_aspect_v2 (urn, aspect, version, metadata, createdon, creat
now(),
'urn:li:corpuser:__datahub_system'
);


drop table if exists metadata_index;
3 changes: 3 additions & 0 deletions docker/postgres-setup/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ INSERT INTO metadata_aspect_v2
SELECT * FROM temp_metadata_aspect_v2
WHERE NOT EXISTS (SELECT * from metadata_aspect_v2);
DROP TABLE temp_metadata_aspect_v2;


drop table if exists metadata_index;
3 changes: 3 additions & 0 deletions docker/postgres/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ insert into metadata_aspect_v2 (urn, aspect, version, metadata, createdon, creat
now(),
'urn:li:corpuser:__datahub_system'
);


drop table if exists metadata_index;

0 comments on commit ae7e822

Please sign in to comment.