Browse Source

- Exclude "My Company/Department" from the export of organizations, since this organization is always created by the setup program.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@242 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 years ago
parent
commit
af6715bd06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      setup/data/export.cmd

+ 1 - 1
setup/data/export.cmd

@@ -6,7 +6,7 @@ SET PWD=admin
 
 REM The order (numbering) of the files is important since
 REM it dictates the order to import them back
-wget --output-document=01.organizations.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT bizOrganization&format=xml"
+wget --output-document=01.organizations.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT bizOrganization WHERE name !='My Company/Department'&format=xml"
 wget --output-document=02.locations.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT bizLocation&format=xml"
 wget --output-document=03.persons.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT bizPerson WHERE id !%%3D 1&format=xml"
 wget --output-document=04.teams.xml --post-data="auth_user=%USER%&auth_pwd=%PWD%&operation=login" "%EXPORT%?expression=SELECT bizTeam&format=xml"