mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 01:11:07 +03:00
Fix typeorm migrations (#297)
* fix: remove config parameter from typeorm cli and update config the config parameter is no longer supported since version 0.3 the config now needs to export a DataSource object to work with the 0.3 cli * fix: update all typeorm entities and migrations to be aligned with database structure * Fixed test-util import databaseConfig * Fixed column mismatch in raw query with new migration * Remove dist build directory when starting dev server Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -5,13 +5,13 @@ export class UserEntity {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id!: string;
|
||||
|
||||
@Column()
|
||||
@Column({ default: '' })
|
||||
firstName!: string;
|
||||
|
||||
@Column()
|
||||
@Column({ default: '' })
|
||||
lastName!: string;
|
||||
|
||||
@Column()
|
||||
@Column({ default: false })
|
||||
isAdmin!: boolean;
|
||||
|
||||
@Column()
|
||||
@@ -23,10 +23,10 @@ export class UserEntity {
|
||||
@Column({ select: false })
|
||||
salt?: string;
|
||||
|
||||
@Column()
|
||||
@Column({ default: '' })
|
||||
profileImagePath!: string;
|
||||
|
||||
@Column()
|
||||
@Column({ default: true })
|
||||
shouldChangePassword!: boolean;
|
||||
|
||||
@CreateDateColumn()
|
||||
|
||||
Reference in New Issue
Block a user