Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
diced committed Apr 5, 2021
1 parent 819fd1a commit c3027b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/entities/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class Image {
@PrimaryColumn('varchar', { length: 255 })
public id: string;

@Column('varchar', { default: null, length: 255 })
@Column('text', { default: null })
public file: string;

@Column('bigint')
Expand Down
4 changes: 2 additions & 2 deletions src/lib/entities/URL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ export class URL {
@PrimaryColumn('text')
public id: string;

@Column('varchar', { default: null, length: 255 })
@Column('text', { default: null })
public url: string;

@Column('varchar', { default: null, nullable: true, length: 255 })
@Column('text', { default: null, nullable: true })
public vanity: string;

@Column('bigint')
Expand Down
8 changes: 4 additions & 4 deletions src/lib/entities/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ export class User {
@PrimaryGeneratedColumn()
public id: number;

@Column('varchar', { length: 255 })
@Column('text')
public username: string;

@Column('varchar', { length: 255 })
@Column('text')
public password: string;

@Column('varchar', { default: null, length: 255 }) /* used for gravatar avatar! */
@Column('text', { default: null }) /* used for gravatar avatar! */
public email: string;

@Column('boolean', { default: false })
public administrator: boolean;

@Column('varchar', { length: 255 })
@Column('text')
public token: string;

@Column('simple-json', { default: null })
Expand Down
2 changes: 1 addition & 1 deletion src/lib/entities/Zipline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Entity, Column, PrimaryColumn } from 'typeorm';
// this will be used for more stuff other than first setups
@Entity({ name: 'zipline_data' })
export class Zipline {
@PrimaryColumn('varchar', { length: 255 })
@PrimaryColumn('text')
public id: string;

@Column('boolean', { default: true })
Expand Down

0 comments on commit c3027b9

Please sign in to comment.