IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2009, 4:26:15 PM (17 years ago)
Author:
Paul Price
Message:

Don't remove AUTO_INCREMENT and FOREIGN KEY for the receive tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r23885 r23891  
    11pxadmin_create_mirror_tables.sql: pxadmin_create_tables.sql
    22        -$(RM) pxadmin_create_mirror_tables.sql
    3         $(SED) -n -e '/^  *$$/ d' -e 's/--.*//' -e '/./ H' -e '/;/ { x ; s/AUTO_INCREMENT//g ; s/\n//g ; s/,\{0,1\} *FOREIGN *KEY *([a-zA-Z][a-zA-Z0-9\-\_, ]*) *REFERENCES *[a-zA-Z]\{1,\}([a-zA-Z][a-zA-Z0-9\-\_, ]*)//g ; s/( */(/g ; s/ *)/)/g ; s/  */ /g ; p ; s/.*//g ; x }' pxadmin_create_tables.sql > pxadmin_create_mirror_tables.sql
     3        $(SED) -n -e '/^  *$$/ d' -e 's/--.*//' -e '/./ H' -e '/;/ !b' -e 'x ; s/\n//g ; /^CREATE TABLE receive/ { b print }' -e 's/AUTO_INCREMENT//g ; s/,\{0,1\} *FOREIGN *KEY *([a-zA-Z][a-zA-Z0-9\-\_, ]*) *REFERENCES *[a-zA-Z]\{1,\}([a-zA-Z][a-zA-Z0-9\-\_, ]*)//g' -e ': print' -e 's/( */(/g ; s/ *)/)/g ; s/  */ /g ; p ; s/.*//g ; x' pxadmin_create_tables.sql > pxadmin_create_mirror_tables.sql
    44        echo '-- This comment line is here to avoid empty query error.' >> pxadmin_create_mirror_tables.sql
    55
Note: See TracChangeset for help on using the changeset viewer.