Skip to content

Commit

Permalink
test: prefix subcounters sub-entity with "sub" to fit in 30 character…
Browse files Browse the repository at this point in the history
… identifier for oracle

Problem introduced with #6981
  • Loading branch information
nebkat committed Feb 27, 2021
1 parent 476988a commit 89c836a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/functional/entity-metadata/entity/Counters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Counters {
@Column()
favorites: number;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

@ManyToMany(type => User, user => user.likedPosts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Counters {
@Column()
favorites: number;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Counters {
@JoinTable({ name: "counter_categories" })
categories: Category[];

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcntrs: Subcounters;

categoryIds: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Counters {
@ManyToOne(type => Category)
category: Category;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryId: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Counters {
@ManyToOne(type => Category, category => category.posts)
category: Category;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryId: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class Counters {
@OneToMany(type => Category, category => category.post)
categories: Category[];

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryIds: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class Counters {
@OneToMany(type => Category, category => category.posts)
categories: Category[];

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryIds: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Counters {
@JoinColumn()
category: Category;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryId: number[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Counters {
@JoinColumn()
category: Category;

@Column(() => Subcounters)
@Column(() => Subcounters, {prefix: "sub"})
subcounters: Subcounters;

categoryId: number;
Expand Down

0 comments on commit 89c836a

Please sign in to comment.