Adding some dev-time sql files for mysql.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@540617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2007-05-22 15:53:43 +00:00
parent 18454da4e7
commit 54fdb19382
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,17 @@
-- mysql mysql --user=root --password < dev_bootstrap.sql
create database archiva;
create database redback;
use mysql;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX
ON archiva.*
TO 'archiva'@'localhost'
IDENTIFIED BY 'sa';
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX
ON redback.*
TO 'archiva'@'localhost'
IDENTIFIED BY 'sa';

View File

@ -0,0 +1,32 @@
-- mysql archiva --user=archiva --password=sa < drop_archiva_tables.sql
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_BUILDEXTENSIONS` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_DEPENDENCIES` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_DEPENDENCYMANAGEMENT` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_INDIVIDUALS` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_LICENSES` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_MAILINGLISTS` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_PLUGINS` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_REPORTS` ;
DROP TABLE IF EXISTS `ARCHIVAPROJECTMODEL_REPOSITORIES` ;
DROP TABLE IF EXISTS `ARCHIVA_ARTIFACT` ;
DROP TABLE IF EXISTS `ARCHIVA_ARTIFACT_REFERENCE` ;
DROP TABLE IF EXISTS `ARCHIVA_CIMANAGEMENT` ;
DROP TABLE IF EXISTS `ARCHIVA_DEPENDENCY` ;
DROP TABLE IF EXISTS `ARCHIVA_EXCLUSIONS` ;
DROP TABLE IF EXISTS `ARCHIVA_INDIVIDUAL` ;
DROP TABLE IF EXISTS `ARCHIVA_ISSUE_MANAGEMENT` ;
DROP TABLE IF EXISTS `ARCHIVA_LICENSES` ;
DROP TABLE IF EXISTS `ARCHIVA_MAILING_LISTS` ;
DROP TABLE IF EXISTS `ARCHIVA_ORGANIZATION` ;
DROP TABLE IF EXISTS `ARCHIVA_PROJECT` ;
DROP TABLE IF EXISTS `ARCHIVA_PROJECT_REPOSITORIES` ;
DROP TABLE IF EXISTS `ARCHIVA_REPOSITORIES` ;
DROP TABLE IF EXISTS `ARCHIVA_REPOSITORY_STATS` ;
DROP TABLE IF EXISTS `ARCHIVA_SCM` ;
DROP TABLE IF EXISTS `ARCHIVA_VERSIONED_REFERENCE` ;
DROP TABLE IF EXISTS `DEPENDENCY_EXCLUSIONS` ;
DROP TABLE IF EXISTS `INDIVIDUAL_ROLES` ;
DROP TABLE IF EXISTS `MAILINGLIST_OTHERARCHIVES` ;
DROP TABLE IF EXISTS `SEQUENCE_TABLE` ;