-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch file to use
TimestamptzSqlite
instead of Timestamp
, act…
…ually insert users
- Loading branch information
Showing
5 changed files
with
170 additions
and
29 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
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 |
---|---|---|
@@ -0,0 +1,139 @@ | ||
diff --git a/crates/database/src/schema/sqlite.rs b/crates/database/src/schema/sqlite.rs | ||
index 1287d455..7c5c312a 100644 | ||
--- a/crates/database/src/schema/sqlite.rs | ||
+++ b/crates/database/src/schema/sqlite.rs | ||
@@ -16,14 +16,14 @@ | ||
diesel::table! { | ||
use diesel::sql_types::*; | ||
use crate::schema::sql_types::*; | ||
|
||
api_keys (id) { | ||
description -> Nullable<Text>, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
expires_in -> Nullable<Timestamp>, | ||
scopes -> BigInt, | ||
owner -> Text, | ||
token -> Text, | ||
name -> Text, | ||
id -> Text, | ||
@@ -36,14 +36,14 @@ diesel::table! { | ||
|
||
organization_members (id) { | ||
public_visibility -> Bool, | ||
display_name -> Nullable<Text>, | ||
organization -> Text, | ||
permissions -> BigInt, | ||
- updated_at -> Timestamp, | ||
- joined_at -> Timestamp, | ||
+ updated_at -> TimestamptzSqlite, | ||
+ joined_at -> TimestamptzSqlite, | ||
account -> Text, | ||
id -> Text, | ||
} | ||
} | ||
|
||
diesel::table! { | ||
@@ -52,14 +52,14 @@ diesel::table! { | ||
|
||
organizations (id) { | ||
verified_publisher -> Bool, | ||
twitter_handle -> Nullable<Text>, | ||
gravatar_email -> Nullable<Text>, | ||
display_name -> Nullable<Text>, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
icon_hash -> Nullable<Text>, | ||
private -> Bool, | ||
owner -> Text, | ||
name -> Text, | ||
id -> Text, | ||
} | ||
@@ -69,14 +69,14 @@ diesel::table! { | ||
use diesel::sql_types::*; | ||
use crate::schema::sql_types::*; | ||
|
||
repositories (id) { | ||
description -> Nullable<Text>, | ||
deprecated -> Bool, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
icon_hash -> Nullable<Text>, | ||
private -> Bool, | ||
owner -> Text, | ||
name -> Text, | ||
#[sql_name = "type"] | ||
type_ -> Text, | ||
@@ -91,28 +91,28 @@ diesel::table! { | ||
|
||
repository_members (id) { | ||
public_visibility -> Bool, | ||
display_name -> Nullable<Text>, | ||
permissions -> BigInt, | ||
repository -> Text, | ||
- updated_at -> Timestamp, | ||
- joined_at -> Timestamp, | ||
+ updated_at -> TimestamptzSqlite, | ||
+ joined_at -> TimestamptzSqlite, | ||
account -> Text, | ||
id -> Text, | ||
} | ||
} | ||
|
||
diesel::table! { | ||
use diesel::sql_types::*; | ||
use crate::schema::sql_types::*; | ||
|
||
repository_releases (id) { | ||
repository -> Text, | ||
update_text -> Nullable<Text>, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
tag -> Text, | ||
id -> Text, | ||
} | ||
} | ||
|
||
diesel::table! { | ||
@@ -133,14 +133,14 @@ diesel::table! { | ||
|
||
user_connections (id) { | ||
noelware_account_id -> Nullable<BigInt>, | ||
google_account_id -> Nullable<Text>, | ||
github_account_id -> Nullable<Text>, | ||
apple_account_id -> Nullable<Text>, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
account -> Text, | ||
id -> Text, | ||
} | ||
} | ||
|
||
diesel::table! { | ||
@@ -149,14 +149,14 @@ diesel::table! { | ||
|
||
users (id) { | ||
verified_publisher -> Bool, | ||
gravatar_email -> Nullable<Text>, | ||
description -> Nullable<Text>, | ||
avatar_hash -> Nullable<Text>, | ||
- created_at -> Timestamp, | ||
- updated_at -> Timestamp, | ||
+ created_at -> TimestamptzSqlite, | ||
+ updated_at -> TimestamptzSqlite, | ||
username -> Text, | ||
password -> Nullable<Text>, | ||
email -> Text, | ||
admin -> Bool, | ||
name -> Nullable<Text>, | ||
id -> Text, |
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