remove_index 'issues', :name => 'issues_root_component_id'
remove_column 'issues', 'component_id'
remove_column 'issues', 'root_component_id'
- change_column 'issues', :component_uuid, :string, :limit => 50, :null => false
- change_column 'issues', :project_uuid, :string, :limit => 50, :null => false
-
+
if dialect()=='sqlserver'
add_index :issues, :component_uuid, :name => 'issues_component_uuid'
add_index :issues, :project_uuid, :name => 'issues_project_uuid'
CREATE TABLE "ISSUES" (
"ID" BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
"KEE" VARCHAR(50) UNIQUE NOT NULL,
- "COMPONENT_UUID" VARCHAR(50) NOT NULL,
- "PROJECT_UUID" VARCHAR(50) NOT NULL,
+ "COMPONENT_UUID" VARCHAR(50),
+ "PROJECT_UUID" VARCHAR(50),
"RULE_ID" INTEGER,
"SEVERITY" VARCHAR(10),
"MANUAL_SEVERITY" BOOLEAN NOT NULL,