mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
add autoincrement for tables
This commit is contained in:
@@ -6,7 +6,7 @@ export class CreateTitlesTable1672729964237 implements MigrationInterface {
|
|||||||
`create table titles
|
`create table titles
|
||||||
(
|
(
|
||||||
id INTEGER
|
id INTEGER
|
||||||
primary key,
|
primary key autoincrement,
|
||||||
title VARCHAR(512),
|
title VARCHAR(512),
|
||||||
type VARCHAR(50)
|
type VARCHAR(50)
|
||||||
);`,
|
);`,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export class CreateTorrentsTableAndRelateToFiles1673603746273
|
|||||||
await queryRunner.query(
|
await queryRunner.query(
|
||||||
`create table torrents
|
`create table torrents
|
||||||
(
|
(
|
||||||
id INTEGER primary key,
|
id INTEGER primary key autoincrement,
|
||||||
magnet VARCHAR(512),
|
magnet VARCHAR(512),
|
||||||
name VARCHAR(256),
|
name VARCHAR(256),
|
||||||
path VARCHAR(512),
|
path VARCHAR(512),
|
||||||
|
|||||||
Reference in New Issue
Block a user