mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 22:35:40 +00:00
Remove PrimaryIdAutoGenerated (only for what used to be mongodb support)
This commit is contained in:
@@ -16,15 +16,13 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Column, Entity, ObjectIdColumn, PrimaryGeneratedColumn, BaseEntity } from "typeorm";
|
||||
|
||||
export const PrimaryIdAutoGenerated = process.env.DATABASE?.startsWith("mongodb") ? ObjectIdColumn : PrimaryGeneratedColumn;
|
||||
import { Column, Entity, PrimaryGeneratedColumn, BaseEntity } from "typeorm";
|
||||
|
||||
@Entity({
|
||||
name: "migrations",
|
||||
})
|
||||
export class Migration extends BaseEntity {
|
||||
@PrimaryIdAutoGenerated()
|
||||
@PrimaryGeneratedColumn()
|
||||
id: number;
|
||||
|
||||
@Column({ type: "bigint" })
|
||||
|
||||
Reference in New Issue
Block a user