diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-02-03 18:44:22 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-02-03 18:44:22 -0800 |
| commit | 41347384d05b3dd73f73a45857f645733b0cb2c7 (patch) | |
| tree | 7a8a7ffdc2e26b7c844dd89c80befa458435b584 /FS | |
| parent | 85df57b62bee761a4946850f97230a21e96c51a6 (diff) | |
added part_pkg.agent_pkgpartid, RT#27214
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/Schema.pm | 3 | ||||
| -rw-r--r-- | FS/FS/part_pkg.pm | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 17fa2d8d9..728b0ccbb 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -2958,11 +2958,12 @@ sub tables_hashref { 'successor', 'int', 'NULL', '', '', '', 'family_pkgpart','int', 'NULL', '', '', '', 'delay_start', 'int', 'NULL', '', '', '', + 'agent_pkgpartid', 'varchar', 'NULL', 20, '', '', ], 'primary_key' => 'pkgpart', 'unique' => [], 'index' => [ [ 'promo_code' ], [ 'disabled' ], [ 'classnum' ], - [ 'agentnum' ], ['no_auto'], + [ 'agentnum' ], ['no_auto'], ['agent_pkgpartid'], ], 'foreign_keys' => [ { columns => [ 'classnum' ], diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm index 26cdf705a..8f8287b5f 100644 --- a/FS/FS/part_pkg.pm +++ b/FS/FS/part_pkg.pm @@ -703,6 +703,7 @@ sub check { || $self->ut_numbern('delay_start') || $self->ut_foreign_keyn('successor', 'part_pkg', 'pkgpart') || $self->ut_foreign_keyn('family_pkgpart', 'part_pkg', 'pkgpart') + || $self->ut_alphan('agent_pkgpartid') || $self->SUPER::check ; return $error if $error; |
