API Removed deprecated DatabaseAdmin#clearAllData()

This commit is contained in:
Ingo Schommer 2017-05-08 21:09:13 +12:00 committed by Damian Mooyman
parent 81e5c7ac40
commit 2a7c76e9e9
2 changed files with 1 additions and 11 deletions

View File

@ -1380,6 +1380,7 @@ A very small number of methods were chosen for deprecation, and will be removed
* `DataObjectSchema` class added to assist with mapping between classes and tables. * `DataObjectSchema` class added to assist with mapping between classes and tables.
* `DBMoney` values are now treated as empty only if `Amount` field is null. If an `Amount` value * `DBMoney` values are now treated as empty only if `Amount` field is null. If an `Amount` value
is provided without a `Currency` specified, it will be formatted as per the current locale. is provided without a `Currency` specified, it will be formatted as per the current locale.
* Removed `DatabaseAdmin#clearAllData()`. Use `DB::get_conn()->clearAllData()` instead
The below methods have been added or had their functionality updated to `DBDate`, `DBTime` and `DBDatetime` The below methods have been added or had their functionality updated to `DBDate`, `DBTime` and `DBDatetime`
* `getTimestamp()` added to get the respective date / time as unix timestamp (seconds since 1970-01-01) * `getTimestamp()` added to get the respective date / time as unix timestamp (seconds since 1970-01-01)

View File

@ -361,17 +361,6 @@ class DatabaseAdmin extends Controller
ClassInfo::reset_db_cache(); ClassInfo::reset_db_cache();
} }
/**
* Clear all data out of the database
*
* @deprecated since version 4.0
*/
public function clearAllData()
{
Deprecation::notice('4.0', 'Use DB::get_conn()->clearAllData() instead');
DB::get_conn()->clearAllData();
}
/** /**
* Remove invalid records from tables - that is, records that don't have * Remove invalid records from tables - that is, records that don't have
* corresponding records in their parent class tables. * corresponding records in their parent class tables.