Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tool-up-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
elis
tool-up-backend
Commits
b0fcf323
Commit
b0fcf323
authored
9 years ago
by
Thiemo Belmega
Browse files
Options
Downloads
Patches
Plain Diff
Provide adjusted version of the create script for MySQL server version 5.5 and before
parent
00029030
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/TestCreateScript.sql
+3
-3
3 additions, 3 deletions
src/main/resources/TestCreateScript.sql
src/main/resources/TestCreateScript_MySql55.sql
+64
-0
64 additions, 0 deletions
src/main/resources/TestCreateScript_MySql55.sql
with
67 additions
and
3 deletions
src/main/resources/TestCreateScript.sql
+
3
−
3
View file @
b0fcf323
DROP
SCHEMA
test
;
CREATE
SCHEMA
test
;
USE
test
;
DROP
SCHEMA
provider_toolup
;
CREATE
SCHEMA
provider_toolup
;
USE
provider_toolup
;
CREATE
TABLE
application
(
uuid
VARCHAR
(
64
)
NOT
NULL
,
title
VARCHAR
(
128
)
NOT
NULL
,
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/TestCreateScript_MySql55.sql
0 → 100644
+
64
−
0
View file @
b0fcf323
DROP
SCHEMA
provider_toolup
;
CREATE
SCHEMA
provider_toolup
;
USE
provider_toolup
;
CREATE
TABLE
application
(
uuid
VARCHAR
(
64
)
NOT
NULL
,
title
VARCHAR
(
128
)
NOT
NULL
,
description
LONGTEXT
,
FULLTEXT
(
title
,
description
),
PRIMARY
KEY
(
uuid
)
)
ENGINE
=
MyISAM
;
CREATE
TABLE
category
(
uuid
VARCHAR
(
64
)
NOT
NULL
,
title
VARCHAR
(
128
)
NOT
NULL
,
description
LONGTEXT
,
supercategory
VARCHAR
(
64
),
FULLTEXT
(
title
,
description
),
PRIMARY
KEY
(
uuid
),
FOREIGN
KEY
(
supercategory
)
REFERENCES
category
(
uuid
)
ON
DELETE
SET
NULL
)
ENGINE
=
MyISAM
;
CREATE
TABLE
feature
(
uuid
VARCHAR
(
64
)
NOT
NULL
,
title
VARCHAR
(
128
)
NOT
NULL
,
description
LONGTEXT
,
FULLTEXT
(
title
,
description
),
PRIMARY
KEY
(
uuid
)
)
ENGINE
=
MyISAM
;
CREATE
TABLE
application_belongs_to_category
(
application_uuid
VARCHAR
(
64
)
NOT
NULL
,
category_uuid
VARCHAR
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
application_uuid
,
category_uuid
),
FOREIGN
KEY
(
application_uuid
)
REFERENCES
application
(
uuid
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
category_uuid
)
REFERENCES
category
(
uuid
)
ON
DELETE
CASCADE
)
ENGINE
=
MyISAM
;
CREATE
TABLE
application_has_feature
(
application_uuid
VARCHAR
(
64
)
NOT
NULL
,
feature_uuid
VARCHAR
(
64
)
NOT
NULL
,
PRIMARY
KEY
(
application_uuid
,
feature_uuid
),
FOREIGN
KEY
(
application_uuid
)
REFERENCES
application
(
uuid
)
ON
DELETE
CASCADE
,
FOREIGN
KEY
(
feature_uuid
)
REFERENCES
feature
(
uuid
)
ON
DELETE
CASCADE
)
ENGINE
=
MyISAM
;
INSERT
INTO
application
VALUES
(
'application-test_id_1'
,
'Dropbox'
,
'Dropbox Description'
);
INSERT
INTO
application
VALUES
(
'application-test_id_2'
,
'Box.UP'
,
'Box.UP Description'
);
INSERT
INTO
category
VALUES
(
'category-test_id_13'
,
'Überkategorie'
,
'Eine Kategorie zum Testen der Superkategorie-Beziehung'
,
NULL
);
INSERT
INTO
category
VALUES
(
'category-test_id_11'
,
'Cloud Speicher'
,
'Cloud Speicher Description'
,
'category-test_id_13'
);
INSERT
INTO
category
VALUES
(
'category-test_id_12'
,
'Wiki'
,
'Wiki Description'
,
'category-test_id_13'
);
INSERT
INTO
feature
VALUES
(
'feature-test_id_21'
,
'Kalender anlegen'
,
'Kalender anlegen Description'
);
INSERT
INTO
feature
VALUES
(
'feature-test_id_22'
,
'Termine teilen'
,
'Termine teilen Description'
);
INSERT
INTO
application_belongs_to_category
VALUES
(
'application-test_id_1'
,
'category-test_id_11'
);
INSERT
INTO
application_belongs_to_category
VALUES
(
'application-test_id_2'
,
'category-test_id_11'
);
INSERT
INTO
application_has_feature
VALUES
(
'application-test_id_1'
,
'feature-test_id_21'
);
INSERT
INTO
application_has_feature
VALUES
(
'application-test_id_1'
,
'feature-test_id_22'
);
INSERT
INTO
application_has_feature
VALUES
(
'application-test_id_2'
,
'feature-test_id_21'
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment