Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
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
Maunium
synapse
Commits
cb769456
Commit
cb769456
authored
10 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Add update delta for schema change
parent
87538711
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/storage/__init__.py
+1
-1
1 addition, 1 deletion
synapse/storage/__init__.py
synapse/storage/schema/delta/v8.sql
+34
-0
34 additions, 0 deletions
synapse/storage/schema/delta/v8.sql
with
35 additions
and
1 deletion
synapse/storage/__init__.py
+
1
−
1
View file @
cb769456
...
@@ -67,7 +67,7 @@ SCHEMAS = [
...
@@ -67,7 +67,7 @@ SCHEMAS = [
# Remember to update this number every time an incompatible change is made to
# Remember to update this number every time an incompatible change is made to
# database schema files, so the users will be informed on server restarts.
# database schema files, so the users will be informed on server restarts.
SCHEMA_VERSION
=
7
SCHEMA_VERSION
=
8
class
_RollbackButIsFineException
(
Exception
):
class
_RollbackButIsFineException
(
Exception
):
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/schema/delta/v8.sql
0 → 100644
+
34
−
0
View file @
cb769456
/* Copyright 2014 OpenMarket Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CREATE
TABLE
IF
NOT
EXISTS
event_signatures_2
(
event_id
TEXT
,
signature_name
TEXT
,
key_id
TEXT
,
signature
BLOB
,
CONSTRAINT
uniqueness
UNIQUE
(
event_id
,
signature_name
,
key_id
)
);
INSERT
INTO
event_signatures_2
(
event_id
,
signature_name
,
key_id
,
signature
)
SELECT
event_id
,
signature_name
,
key_id
,
signature
FROM
event_signatures
;
DROP
TABLE
event_signatures
;
ALTER
TABLE
event_signatures_2
RENAME
TO
event_signatures
;
CREATE
INDEX
IF
NOT
EXISTS
event_signatures_id
ON
event_signatures
(
event_id
);
PRAGMA
user_version
=
8
;
\ 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