-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9a682f
commit aebc847
Showing
9 changed files
with
10 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
DROP TABLE IF EXISTS collabs; | ||
DROP TABLE IF EXISTS repos; | ||
DROP TABLE IF EXISTS public_keys; | ||
DROP TABLE IF EXISTS users; | ||
DROP TABLE IF EXISTS settings; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
DROP TABLE IF EXISTS collabs; | ||
DROP TABLE IF EXISTS repos; | ||
DROP TABLE IF EXISTS public_keys; | ||
DROP TABLE IF EXISTS users; | ||
DROP TABLE IF EXISTS settings; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
DROP TABLE IF EXISTS lfs_locks; | ||
DROP TABLE IF EXISTS lfs_objects; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
DROP TABLE IF EXISTS lfs_locks; | ||
DROP TABLE IF EXISTS lfs_objects; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
DROP TABLE IF EXISTS access_tokens; | ||
|
||
ALTER TABLE users DROP COLUMN password; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
DROP TABLE IF EXISTS access_tokens; | ||
DROP TABLE IF EXISTS users_old; | ||
|
||
ALTER TABLE users RENAME TO users_old; | ||
|
||
CREATE TABLE IF NOT EXISTS users ( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
username TEXT NOT NULL UNIQUE, | ||
admin BOOLEAN NOT NULL, | ||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at DATETIME NOT NULL | ||
); | ||
|
||
INSERT INTO users (username, admin, created_at, updated_at) | ||
SELECT username, admin, created_at, updated_at FROM users_old; | ||
ALTER TABLE users DROP COLUMN password; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters