Skip to content

Commit

Permalink
Sanofi RC2 dumped from oracle, tables and sequences ported to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
ricepeterm committed May 13, 2014
1 parent 03f5d2a commit 4effd7f
Show file tree
Hide file tree
Showing 696 changed files with 7,256 additions and 2,102 deletions.
20 changes: 20 additions & 0 deletions cmp-table-pg.csh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/csh -f

set table = $argv[1];
set ok = 1;
set masterdir="/data/scratch/git-london/transmart-data";

if (! -e ddl/postgres/$table.sql) then
echo "ddl/postgres/$table.sql not found"
set ok = 0;
endif
if (! -e $masterdir/ddl/postgres/$table.sql) then
echo "$masterdir/ddl/postges/$table.sql not found"
set ok = 0;
endif

if(! $ok) then
exit
endif

diff ddl/postgres/$table.sql $masterdir/ddl/postgres/$table.sql
6 changes: 1 addition & 5 deletions ddl/oracle/GLOBAL/amapp.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
--
-- Type: USER; Name: AMAPP
--
CREATE USER "AMAPP" IDENTIFIED BY VALUES 'S:1DCBF3D35879B9CA08006487B517485D37473ABF3D734A476B412AE910CD;02955D58870FE54F'
CREATE USER "AMAPP" IDENTIFIED BY VALUES 'S:415ECB1CFEBB5602AD503AF6D59F6F952B7F3FCF445FB10451E6C22EE48F;H:BD27E54CC4B7C151C650DA9D4CA3E075;02955D58870FE54F'
DEFAULT TABLESPACE "TRANSMART"
TEMPORARY TABLESPACE "TEMP";

--
-- Type: ROLE_GRANT; Name: AMAPP
--
GRANT "CONNECT" TO "AMAPP";

--
-- Type: SYSTEM_GRANT; Name: AMAPP
--
Expand All @@ -36,7 +34,6 @@ EXCEPTION
END IF;
END;
/

DECLARE
TEMP_COUNT NUMBER;
SQLSTR VARCHAR2(200);
Expand All @@ -57,4 +54,3 @@ EXCEPTION
END IF;
END;
/

7 changes: 1 addition & 6 deletions ddl/oracle/GLOBAL/biomart.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
--
-- Type: USER; Name: BIOMART
--
CREATE USER "BIOMART" IDENTIFIED BY VALUES 'S:E44B099B2B3A92644DD73546C4DF0D3981860BD875AFD8AD3C2DEDF36001;EE8EC2CF8301F8AE'
CREATE USER "BIOMART" IDENTIFIED BY VALUES 'S:EE13425B7DE6416AFE452AC65024C49C4795B7BCAA8626C619D6D55D1CAF;H:696B5CC8E307A056912D308A57F9B4BC;EE8EC2CF8301F8AE'
DEFAULT TABLESPACE "BIOMART"
TEMPORARY TABLESPACE "TEMP";

--
-- Type: TABLESPACE_QUOTA; Name: BIOMART
--
Expand All @@ -28,7 +27,6 @@ EXCEPTION
END IF;
END;
/

DECLARE
TEMP_COUNT NUMBER;
SQLSTR VARCHAR2(200);
Expand All @@ -49,7 +47,6 @@ EXCEPTION
END IF;
END;
/

DECLARE
TEMP_COUNT NUMBER;
SQLSTR VARCHAR2(200);
Expand All @@ -70,12 +67,10 @@ EXCEPTION
END IF;
END;
/

--
-- Type: ROLE_GRANT; Name: BIOMART
--
GRANT "CONNECT" TO "BIOMART";

--
-- Type: SYSTEM_GRANT; Name: BIOMART
--
Loading

0 comments on commit 4effd7f

Please sign in to comment.