mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 12:11:02 -04:00
SQLite wants INTEGER and not BIGINT for primary keys
This commit is contained in:
parent
d5d4281647
commit
0f12772e32
6 changed files with 9 additions and 9 deletions
|
@ -13,7 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
CREATE TABLE IF NOT EXISTS users(
|
||||
id BIGINT PRIMARY KEY AUTOINCREMENT,
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
name VARCHAR(150),
|
||||
password_hash VARCHAR(150),
|
||||
creation_ts BIGINT,
|
||||
|
@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS users(
|
|||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS access_tokens(
|
||||
id BIGINT PRIMARY KEY AUTOINCREMENT,
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id VARCHAR(150) NOT NULL,
|
||||
device_id VARCHAR(150),
|
||||
token VARCHAR(150) NOT NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue