You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by sajhak <gi...@git.apache.org> on 2015/08/04 12:44:37 UTC
[GitHub] stratos pull request: Add database/
Github user sajhak commented on a diff in the pull request:
https://github.com/apache/stratos/pull/378#discussion_r36175848
--- Diff: components/org.apache.stratos.manager/src/main/database/SM.sql ---
@@ -0,0 +1,79 @@
+SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
+SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
+SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
+
+CREATE SCHEMA IF NOT EXISTS `StratosManager` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;
+USE `StratosManager` ;
+
+-- -----------------------------------------------------
+-- Table `StratosManager`.`Cluster`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `StratosManager`.`Cluster` (
+ `clusterId` VARCHAR(255) NULL,
--- End diff --
@JaneAarthy , why this clusterId, which is also declared as the Primary key, is defined as a 'NULL' ?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---