frytimo
2cbb4dbc31
remove instances where a pointer is used in a foreach loop for value ( #7108 )
2024-08-22 12:41:10 -06:00
FusionPBX
1b5d66e85e
Refresh each subscription publication
2024-02-17 08:34:47 -07:00
frytimo
10e7b485e7
Schema change object property db instead of database->db ( #6833 )
2023-12-16 07:54:20 -07:00
FusionPBX
968706dac2
Using this->apps more consistently
...
A previous commit moved from $apps to $this->apps but missed some required uses of the $apps array.
2023-11-08 14:18:24 -07:00
FusionPBX
2ed2ac63ae
Add table exists and set row exists
2023-11-03 23:55:35 -06:00
frytimo
372db3cc50
Patch contacts calling multiple schemas ( #6826 )
...
* improve performance for contacts app_defaults
* add app_name and app_uuid as constants in class
* performance boost by removing scanning app_defaults twice
* Update app_defaults.php
* Update schema.php
---------
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-11-03 14:04:07 -06:00
FusionPBX
e3cfa0d1da
Prevent more PHP 8.1 warnings
2023-07-10 18:33:18 -06:00
markjcrane
c92872ab8f
Use require instead of require_once on require.php
2023-06-17 09:11:32 -06:00
markjcrane
32051873be
Use __dir__ to find resources/require.php
2023-06-16 22:49:09 -06:00
FusionPBX
5755ae3f48
Update schema.php for PHP 8.1
2023-05-13 17:31:27 -06:00
FusionPBX
a2bb8e5f90
Limit subquery to one result
...
This prevent a cardinality error.
2023-05-12 16:22:50 -06:00
frytimo
fef8165be2
Frytimo pr patches for php8.1 ( #6630 )
...
* Passing null to parameter #2 ($string) of type string is deprecated
* Passing null to parameter #1 ($string) of type string is deprecated
* php 8.1 fixes
* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)
* php 8.1 fixes - replace ${var} with {$var}
* php 8.1 fixes - replace ${var} with {$var}
* php 8.1 fixes - replace ${var} with {$var}
* php 8.1 fixes - replace ${var} with {$var}
* php 8.1 fixes - strlower with null
* php 8.1 fixes - strreplace with null
* php 8.1 fixes - passing null to base64_decode
* php 8.1 fixes - check for false and check for null on $this->dir
* php 8.1 fixes - remove assignment of $db variable to modules object
* php 8.1 fixes - avoid sending null to substr
* php 8.1 fixes - change ${var} to {$var}
* php 8.1 fixes - check for null before preg_replace
* php 8.1 fixes - remove setting db variable on domains object
* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null
* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available
* php 8.1 fixes
* php 8.1 fixes - correct $_POST checking syntax
* php 8.1 fixes - correct $_POST variables
* php 8.1 fixes
* Use brackets consistently
* Update user_setting_edit.php
* Change to not empty
* Update device.php
* Update text.php
---------
Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
frytimo
5e23824940
contacts app_defaults breaks PDO db ( #6585 )
2023-03-24 09:18:23 -06:00
FusionPBX
0a47fc22b3
Get the DOCUMENT_ROOT and PROJECT_PATH
2022-10-11 17:10:39 -06:00
markjcrane
d50bcb476a
Replace root.php
2022-10-10 16:35:14 -06:00
fusionate
96ac8c8334
Upgrade > Schema: Update schema class to use casting for numeric changes.
2020-11-25 15:11:45 -07:00
FusionPBX
64434862b8
Update schema.php
...
Prevent a plugin from breaking parts of the project.
2020-11-04 10:00:31 -07:00
FusionPBX
69541f560b
Update schema.php
...
Deprecate global upgrade_data_types variable and replace with a $this->data_types
2020-10-21 14:28:15 -06:00
FusionPBX
9f7ca538a3
Update schema.php
...
Minor changes. Remove extra line feeds and add a semi-colon.
2020-10-21 11:32:46 -06:00
FusionPBX
1d2956cbfb
Update schema.php
2020-07-05 14:37:08 -06:00
Nate
f186d1ee9f
Schema Class: Fix Data Type check to work properly.
2019-12-02 14:51:02 -07:00
FusionPBX
19e8305a8e
Update schema.php
2019-09-10 17:50:41 -06:00
FusionPBX
25a4220c4f
Update schema.php
2019-07-27 16:53:42 -06:00
FusionPBX
a80547d1d9
Update schema.php
2019-07-27 16:34:20 -06:00
FusionPBX
75909d85b6
Update schema.php
2019-07-27 09:12:38 -06:00
FusionPBX
ed92a99130
Revert "[4.5] Fix the ALTER TABLE ( #4097 )"
...
This reverts commit 8822528227 .
2019-05-30 00:56:51 -06:00
Luis Daniel Lucio Quiroz
d39190913d
[4.5] Fix the ALTER TABLE ( #4097 )
...
* Fix the ALTER TABLE
when $apps[$x]['db'][$y]['fields'][$z]['name'] is an array, you dont try to get the ['text'] index therefore fields such as v_xml_cdr.xml_uuid, v_destinations.destination_type and v_destinations.destination_number wont be created when upgrading.
This patch fixes it
* Update schema.php
2019-05-08 14:02:20 -06:00
Nate
b31b82bd66
Schema Class: Update compatibility with timestamptz field types.
2019-04-02 09:53:57 -06:00
FusionPBX
f1e5fa4848
Update schema.php
2019-02-12 08:47:44 -07:00
FusionPBX
3dbc6e9936
Update schema.php
2018-02-23 10:11:34 -07:00
FusionPBX
2d68fa9118
Update schema.php
2017-02-16 00:03:33 -07:00
FusionPBX
212cd7d025
Update schema.php
2017-01-05 03:58:01 -07:00
FusionPBX
c43c1a556f
Update schema.php
...
Prevent php warnings.
2017-01-05 03:53:02 -07:00
FusionPBX
e2ae375abd
Update schema.php
2016-12-18 16:48:24 -07:00
markjcrane
c3b12c217d
Cleanup the indentation ... tabs and whitespace after the last pull request.
2016-04-28 16:56:44 -06:00
Harry G. Coin
42a78d8d5e
Fix to cure uninitialized variable warnings whenever schema is called.
...
Also many minor warning bug fixes in schema.php
Might as well take the plunge and go to default show warnings.
Uninitialized variable and small bug fixes install fusionpbx
2016-04-25 21:09:14 -05:00
markjcrane
4b55af24f7
Add class_exists
2016-04-14 23:23:14 -06:00
markjcrane
c2ecb23413
Add a contructor to the dialplan class.
2016-04-14 22:34:10 -06:00
markjcrane
45c391ab76
Update domains and schema classes.
2016-04-14 22:10:47 -06:00
markjcrane
d34d709e37
Schema use $this->$db instead of $db.
2016-04-14 21:51:11 -06:00
markjcrane
1691c3e5f0
Use the new config class in the domains and schema classes.
2015-11-27 19:59:50 -07:00
Nate Jones
996e89c396
Removal of colon next to form label names.
2015-02-15 06:50:00 +00:00
Nate Jones
2448ab3a8e
Use the new multi-lingual code on misc files.
2015-01-18 10:33:34 +00:00
Mark Crane
5e13986a2b
Minor change to the database schema class
2014-07-26 22:48:32 +00:00
Mark Crane
181e2881c0
Make the domain and schema work with the PHP classes
2014-07-16 04:30:49 +00:00
Mark Crane
7b228d849d
Update schema dn domains
2014-07-15 10:30:31 +00:00
Mark Crane
c7abde93dd
Add to the schema class and adjust the db connection obect in the domains class
2014-07-15 07:58:01 +00:00
Mark Crane
891f535cec
Move $db_type to $this->db_type.
2014-04-01 20:20:49 +00:00
Mark Crane
52cd917580
Add a method to the schema class column_exists, and sqlite_column_exists, and table_info.
2014-04-01 18:52:58 +00:00
Mark Crane
e1f72d9b84
Add ['type'] back to $field['key']['type'] as its used in many app_config.php files.
2013-09-10 21:30:17 +00:00