Rev 797 | Rev 863 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 797 | Rev 848 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | # distributed under the License is distributed on an "AS IS" BASIS, |
13 | # distributed under the License is distributed on an "AS IS" BASIS, |
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
15 | # See the License for the specific language governing permissions and |
15 | # See the License for the specific language governing permissions and |
16 | # limitations under the License. |
16 | # limitations under the License. |
17 | 17 | ||
- | 18 | DIR=$( dirname "$0" ) |
|
- | 19 | cd "$DIR" |
|
- | 20 | ||
18 | # Export tables "demo_*" into file setup/sql/example_oracle.sql |
21 | # Export tables "demo_*" into file setup/sql/example_oracle.sql |
19 | # We don't print to console because of encoding issues |
22 | # We don't print to console because of encoding issues |
20 | mysqldump --default-character-set=utf8 --no-create-info --extended-insert=FALSE oidplus demo_iri demo_asn1id demo_ra demo_objects -r ../setup/sql/example_oracle.sql |
23 | #mysqldump --default-character-set=utf8 --no-create-info --extended-insert=FALSE oidplus demo_iri demo_asn1id demo_ra demo_objects -r ../setup/sql/example_oracle.sql |
21 | 24 | ||
22 | # Remove database prefix |
25 | # Remove database prefix |
23 | sed -i 's/`demo_/`/g' ../setup/sql/example_oracle.sql |
26 | #sed -i 's/`demo_/`/g' ../setup/sql/example_oracle.sql |
- | 27 | ||
- | 28 | # Since we have to do some manual work to the MySQL data, we do not create a new dump |
|
- | 29 | # but instead use the MySQL example script (that has been carefully checked) |
|
- | 30 | cat ../setup/sql/example_mysql.sql > ../setup/sql/example_oracle.sql |
|
24 | 31 | ||
25 | # Avoid that there is a conflict with well known IDs (e.g. 2.999) |
32 | # Avoid that there is a conflict with well known IDs (e.g. 2.999) |
26 | #sed -i 's/INSERT INTO `iri`/INSERT IGNORE INTO `iri`/g' ../setup/sql/example_pgsql.sql |
33 | #sed -i 's/INSERT INTO `iri`/INSERT IGNORE INTO `iri`/g' ../setup/sql/example_pgsql.sql |
27 | #sed -i 's/INSERT INTO `asn1id`/INSERT IGNORE INTO `asn1id`/g' ../setup/sql/example_pgsql.sql |
34 | #sed -i 's/INSERT INTO `asn1id`/INSERT IGNORE INTO `asn1id`/g' ../setup/sql/example_pgsql.sql |
28 | 35 |