Rev 848 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 848 | Rev 1244 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | # limitations under the License. |
16 | # limitations under the License. |
17 | 17 | ||
18 | DIR=$( dirname "$0" ) |
18 | DIR=$( dirname "$0" ) |
19 | cd "$DIR" |
19 | cd "$DIR" |
20 | 20 | ||
21 | # Export tables "demo_*" into file setup/sql/example_mysql.sql |
21 | # Export tables "demo_*" into file plugins/viathinksoft/sqlSlang/mysql/sql/example.sql |
22 | # We don't print to console because of encoding issues |
22 | # We don't print to console because of encoding issues |
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_mysql.sql |
23 | mysqldump --default-character-set=utf8 --no-create-info --extended-insert=FALSE oidplus demo_iri demo_asn1id demo_ra demo_objects -r ../plugins/viathinksoft/sqlSlang/mysql/sql/example.sql |
24 | 24 | ||
25 | # Remove database prefix |
25 | # Remove database prefix |
26 | sed -i 's/`demo_/`/g' ../setup/sql/example_mysql.sql |
26 | sed -i 's/`demo_/`/g' ../plugins/viathinksoft/sqlSlang/mysql/sql/example.sql |
27 | 27 | ||
28 | # Avoid that there is a conflict with well known IDs (e.g. 2.999) |
28 | # Avoid that there is a conflict with well known IDs (e.g. 2.999) |
29 | sed -i 's/INSERT INTO `iri`/INSERT IGNORE INTO `iri`/g' ../setup/sql/example_mysql.sql |
29 | sed -i 's/INSERT INTO `iri`/INSERT IGNORE INTO `iri`/g' ../plugins/viathinksoft/sqlSlang/mysql/sql/example.sql |
30 | sed -i 's/INSERT INTO `asn1id`/INSERT IGNORE INTO `asn1id`/g' ../setup/sql/example_mysql.sql |
30 | sed -i 's/INSERT INTO `asn1id`/INSERT IGNORE INTO `asn1id`/g' ../plugins/viathinksoft/sqlSlang/mysql/sql/example.sql |