mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API Removed deprecated DatabaseAdmin#clearAllData()
This commit is contained in:
parent
81e5c7ac40
commit
2a7c76e9e9
@ -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)
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user