Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
ce36011d
Verified
Commit
ce36011d
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
6f76195f
No related branches found
No related tags found
1 merge request
!12
DRAFT: ENH: file system: core
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/patch20210219-5.0.0-rc1/patch.sql
+3
-1
3 additions, 1 deletion
patches/patch20210219-5.0.0-rc1/patch.sql
with
3 additions
and
1 deletion
patches/patch20210219-5.0.0-rc1/patch.sql
+
3
−
1
View file @
ce36011d
...
@@ -18,7 +18,7 @@ ALTER TABLE files ADD COLUMN IF NOT EXISTS (
...
@@ -18,7 +18,7 @@ ALTER TABLE files ADD COLUMN IF NOT EXISTS (
ALTER
TABLE
archive_files
ADD
COLUMN
IF
NOT
EXISTS
(
ALTER
TABLE
archive_files
ADD
COLUMN
IF
NOT
EXISTS
(
mimetype
VARBINARY
(
255
)
DEFAULT
NULL
,
mimetype
VARBINARY
(
255
)
DEFAULT
NULL
,
file_storage_id
VARBINARY
(
255
)
NOT
NULL
DEFAULT
"DEFAULT"
,
file_storage_id
VARBINARY
(
255
)
NOT
NULL
DEFAULT
"DEFAULT"
,
file_key
VARBINARY
(
255
)
NOT
NULL
DEFAULT
NULL
,
file_key
VARBINARY
(
255
)
DEFAULT
NULL
,
checked_timestamp
BIGINT
NOT
NULL
DEFAULT
0
,
checked_timestamp
BIGINT
NOT
NULL
DEFAULT
0
,
hash_algorithm
VARBINARY
(
255
)
DEFAULT
NULL
hash_algorithm
VARBINARY
(
255
)
DEFAULT
NULL
);
);
...
@@ -30,8 +30,10 @@ INSERT INTO entities (id, description, role, acl) VALUES (9, "The directory role
...
@@ -30,8 +30,10 @@ INSERT INTO entities (id, description, role, acl) VALUES (9, "The directory role
INSERT
INTO
name_data
(
domain_id
,
entity_id
,
property_id
,
value
,
status
,
pidx
)
VALUES
(
0
,
9
,
20
,
"DIRECTORY"
,
"FIX"
,
0
);
INSERT
INTO
name_data
(
domain_id
,
entity_id
,
property_id
,
value
,
status
,
pidx
)
VALUES
(
0
,
9
,
20
,
"DIRECTORY"
,
"FIX"
,
0
);
UPDATE
files
SET
file_key
=
path
;
UPDATE
files
SET
file_key
=
path
;
UPDATE
archive_files
SET
file_key
=
path
;
ALTER
TABLE
files
MODIFY
COLUMN
file_key
VARBINARY
(
255
)
NOT
NULL
;
ALTER
TABLE
files
MODIFY
COLUMN
file_key
VARBINARY
(
255
)
NOT
NULL
;
ALTER
TABLE
archive_files
MODIFY
COLUMN
file_key
VARBINARY
(
255
)
NOT
NULL
;
DROP
PROCEDURE
IF
EXISTS
_create_dirs
;
DROP
PROCEDURE
IF
EXISTS
_create_dirs
;
DELIMITER
//
DELIMITER
//
...
...
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