mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
corrected entity includes to allow compilation of the old removed interlinked entities (login_users)
This commit is contained in:
parent
7fd65ae318
commit
d7cd4d32c0
@ -1,5 +1,5 @@
|
|||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne } from 'typeorm'
|
||||||
import { LoginUserBackup } from '../LoginUserBackup'
|
import { LoginUserBackup } from './LoginUserBackup'
|
||||||
|
|
||||||
// Moriz: I do not like the idea of having two user tables
|
// Moriz: I do not like the idea of having two user tables
|
||||||
@Entity('login_users')
|
@Entity('login_users')
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, JoinColumn, OneToOne } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, JoinColumn, OneToOne } from 'typeorm'
|
||||||
import { LoginUser } from '../LoginUser'
|
import { LoginUser } from './LoginUser'
|
||||||
|
|
||||||
@Entity('login_user_backups')
|
@Entity('login_user_backups')
|
||||||
export class LoginUserBackup extends BaseEntity {
|
export class LoginUserBackup extends BaseEntity {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne } from 'typeorm'
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, OneToOne } from 'typeorm'
|
||||||
import { LoginUserBackup } from '../LoginUserBackup'
|
import { LoginUserBackup } from '../0003-login_server_tables/LoginUserBackup'
|
||||||
|
|
||||||
// Moriz: I do not like the idea of having two user tables
|
// Moriz: I do not like the idea of having two user tables
|
||||||
@Entity('login_users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
|
@Entity('login_users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
|
||||||
|
|||||||
16
database/entity/0017-combine_user_tables/LoginUserBackup.ts
Normal file
16
database/entity/0017-combine_user_tables/LoginUserBackup.ts
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, JoinColumn, OneToOne } from 'typeorm'
|
||||||
|
|
||||||
|
@Entity('login_user_backups')
|
||||||
|
export class LoginUserBackup extends BaseEntity {
|
||||||
|
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
||||||
|
id: number
|
||||||
|
|
||||||
|
@Column({ type: 'text', name: 'passphrase', nullable: false })
|
||||||
|
passphrase: string
|
||||||
|
|
||||||
|
@Column({ name: 'user_id', nullable: false })
|
||||||
|
userId: number
|
||||||
|
|
||||||
|
@Column({ name: 'mnemonic_type', default: -1 })
|
||||||
|
mnemonicType: number
|
||||||
|
}
|
||||||
@ -1 +1 @@
|
|||||||
export { LoginUserBackup } from './0003-login_server_tables/LoginUserBackup'
|
export { LoginUserBackup } from './0017-combine_user_tables/LoginUserBackup'
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { Balance } from './Balance'
|
import { Balance } from './Balance'
|
||||||
import { LoginElopageBuys } from './LoginElopageBuys'
|
import { LoginElopageBuys } from './LoginElopageBuys'
|
||||||
import { LoginEmailOptIn } from './LoginEmailOptIn'
|
import { LoginEmailOptIn } from './LoginEmailOptIn'
|
||||||
import { LoginUser } from './LoginUser'
|
|
||||||
import { LoginUserBackup } from './LoginUserBackup'
|
import { LoginUserBackup } from './LoginUserBackup'
|
||||||
import { Migration } from './Migration'
|
import { Migration } from './Migration'
|
||||||
import { ServerUser } from './ServerUser'
|
import { ServerUser } from './ServerUser'
|
||||||
@ -18,7 +17,6 @@ export const entities = [
|
|||||||
Balance,
|
Balance,
|
||||||
LoginElopageBuys,
|
LoginElopageBuys,
|
||||||
LoginEmailOptIn,
|
LoginEmailOptIn,
|
||||||
LoginUser,
|
|
||||||
LoginUserBackup,
|
LoginUserBackup,
|
||||||
Migration,
|
Migration,
|
||||||
ServerUser,
|
ServerUser,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user