Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
seafile-symlink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
Old crap
seafile-symlink
Commits
9c76fc92
Commit
9c76fc92
authored
10 years ago
by
zhengxie
Browse files
Options
Downloads
Patches
Plain Diff
[scripts] Add missing "if not exists" to sqls
parent
2eedccd9
Branches
Branches containing commit
Tags
v3.1.0-server-testing
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/upgrade/sql/3.1.0/mysql/seahub.sql
+1
-1
1 addition, 1 deletion
scripts/upgrade/sql/3.1.0/mysql/seahub.sql
scripts/upgrade/sql/3.1.0/sqlite3/seahub.sql
+3
-2
3 additions, 2 deletions
scripts/upgrade/sql/3.1.0/sqlite3/seahub.sql
with
4 additions
and
3 deletions
scripts/upgrade/sql/3.1.0/mysql/seahub.sql
+
1
−
1
View file @
9c76fc92
...
...
@@ -7,7 +7,7 @@ alter table share_uploadlinkshare add column password varchar(128);
alter
table
share_uploadlinkshare
add
column
expire_date
datetime
;
alter
table
profile_profile
add
column
lang_code
varchar
(
50
)
DEFAULT
NULL
;
CREATE
TABLE
`share_orgfileshare`
(
CREATE
TABLE
IF
NOT
EXISTS
`share_orgfileshare`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`org_id`
int
(
11
)
NOT
NULL
,
`file_share_id`
int
(
11
)
NOT
NULL
,
...
...
This diff is collapsed.
Click to expand it.
scripts/upgrade/sql/3.1.0/sqlite3/seahub.sql
+
3
−
2
View file @
9c76fc92
...
...
@@ -6,9 +6,10 @@ alter table "share_uploadlinkshare" add column "password" varchar(128);
alter
table
"share_uploadlinkshare"
add
column
"expire_date"
datetime
;
alter
table
"profile_profile"
add
column
"lang_code"
varchar
(
50
);
CREATE
TABLE
"share_orgfileshare"
(
CREATE
TABLE
IF
NOT
EXISTS
"share_orgfileshare"
(
"id"
integer
NOT
NULL
PRIMARY
KEY
,
"org_id"
integer
NOT
NULL
,
"file_share_id"
integer
NOT
NULL
UNIQUE
REFERENCES
"share_fileshare"
(
"id"
)
);
CREATE
INDEX
"share_orgfileshare_944dadb6"
ON
"share_orgfileshare"
(
"org_id"
);
CREATE
INDEX
IF
NOT
EXISTS
"share_orgfileshare_944dadb6"
ON
"share_orgfileshare"
(
"org_id"
);
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