Kinglykrab 763fc82379
[Merchants] Add Merchant Data Bucket capability. (#2160)
* [Merchants] Add Merchant Data Bucket capability.
- Allows server operators to limit merchant items based on data bucket values and comparisons.
- Adds 3 columns, bucket_name, bucket_value, and bucket_comparison to merchantlist table.
- Bucket is checked based on GetBucketKey()-bucket_name.
- Buckets are mass loaded when using the merchant so it's not a database call per item, just a grouping of all their buckets from the start.
- This is a nearly year old pull request redone for master.
- bucket_comparison Values are as follows:
        - bucket_comparison 0: bucket_name == bucket_value
        - bucket_comparison 1: bucket_name != bucket_value
        - bucket_comparison 2: bucket_name >= bucket_value
        - bucket_comparison 3: bucket_name <= bucket_value
        - bucket_comparison 4: bucket_name > bucket_value
        - bucket_comparison 5: bucket_name < bucket_value
        - bucket_comparison 6: bucket_name is any of  pipe(|)-separated bucket_value
        - bucket_comparison 7: bucket_name is not any of  pipe(|)-separated bucket_value
        - bucket_comparison 8: bucket_name is between first and second value of pipe(|)-separated bucket_value
        - bucket_comparison 9: bucket_name is not between first and second value of pipe(|)-separated  bucket_value

* Revert query change.
2022-05-09 21:36:51 -04:00
..
2013-02-16 18:05:41 -08:00
2013-03-24 08:36:53 -04:00
2013-04-08 22:33:19 -04:00
2013-11-06 13:48:35 -08:00
2014-03-02 17:36:18 -05:00
2014-04-28 17:18:23 -04:00
2014-07-09 19:19:51 -04:00
SQL
2014-08-02 10:43:48 -04:00
fix
2014-11-14 00:34:17 -05:00
2015-07-04 12:12:18 -04:00
2017-04-10 11:03:36 -07:00
2017-07-24 14:35:22 -04:00
2019-07-03 00:59:49 -05:00
2019-07-10 03:39:07 -05:00