Skip to content

Commit

Permalink
fix component id type everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwh committed Sep 7, 2020
1 parent d6b05b4 commit f0bdc2c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Bugzilla/DB/Schema.pm
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ use constant ABSTRACT_SCHEMA => {
},
version => {TYPE => 'varchar(64)', NOTNULL => 1},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'components', COLUMN => 'id'}
},
Expand Down Expand Up @@ -730,7 +730,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {TABLE => 'products', COLUMN => 'id', DELETE => 'CASCADE'}
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE'}
},
],
Expand All @@ -752,7 +752,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {TABLE => 'products', COLUMN => 'id', DELETE => 'CASCADE'}
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE'}
},
],
Expand Down Expand Up @@ -1162,7 +1162,7 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {TABLE => 'profiles', COLUMN => 'userid', DELETE => 'CASCADE'}
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE'}
},
Expand Down Expand Up @@ -1447,7 +1447,7 @@ use constant ABSTRACT_SCHEMA => {

components => {
FIELDS => [
id => {TYPE => 'SMALLSERIAL', NOTNULL => 1, PRIMARYKEY => 1},
id => {TYPE => 'MEDIUMSERIAL', NOTNULL => 1, PRIMARYKEY => 1},
name => {TYPE => 'varchar(64)', NOTNULL => 1},
product_id => {
TYPE => 'INT2',
Expand Down
2 changes: 1 addition & 1 deletion extensions/BugmailFilter/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ sub db_schema_abstract_schema {
REFERENCES => {TABLE => 'products', COLUMN => 'id', DELETE => 'CASCADE'},
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 0,
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE'},
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/FlagTypeComment/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sub db_schema_abstract_schema {
$args->{'schema'}->{'flagtype_comments'} = {
FIELDS => [
type_id => {
TYPE => 'SMALLINT(6)',
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'flagtypes', COLUMN => 'id', DELETE => 'CASCADE'}
},
Expand Down
4 changes: 2 additions & 2 deletions extensions/Review/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ sub db_schema_abstract_schema {
},
display_name => {TYPE => 'VARCHAR(64)',},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE',}
},
Expand All @@ -856,7 +856,7 @@ sub db_schema_abstract_schema {
flag_when => {TYPE => 'DATETIME', NOTNULL => 1,},

type_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 1,
REFERENCES => {TABLE => 'flagtypes', COLUMN => 'id', DELETE => 'CASCADE'}
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/TrackingFlags/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ sub db_schema_abstract_schema {
REFERENCES => {TABLE => 'products', COLUMN => 'id', DELETE => 'CASCADE',},
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 0,
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE',},
},
Expand Down
2 changes: 1 addition & 1 deletion extensions/Webhooks/Extension.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ sub db_schema_abstract_schema {
REFERENCES => {TABLE => 'products', COLUMN => 'id', DELETE => 'CASCADE',}
},
component_id => {
TYPE => 'INT2',
TYPE => 'INT3',
NOTNULL => 0,
REFERENCES => {TABLE => 'components', COLUMN => 'id', DELETE => 'CASCADE',}
}
Expand Down

0 comments on commit f0bdc2c

Please sign in to comment.