Lines Matching refs:DB
22 use Fisharebest\Webtrees\DB; alias
35 DB::schema()->dropIfExists('site_access_rule');
36 DB::schema()->dropIfExists('next_id');
40 if (!DB::schema()->hasTable('media_file')) {
41 DB::schema()->create('media_file', static function (Blueprint $table): void {
59 … if (DB::table('media_file')->count() === 0 && DB::schema()->hasColumn('media', 'm_filename')) {
60 (new Builder(DB::connection()))->from('media_file')->insertUsing([
69 $substring_function = DB::driverName() === DB::SQLITE ? 'SUBSTR' : 'SUBSTRING';
82 DB::schema()->table('media', static function (Blueprint $table): void {
85 DB::schema()->table('media', static function (Blueprint $table): void {
88 DB::schema()->table('media', static function (Blueprint $table): void {
91 DB::schema()->table('media', static function (Blueprint $table): void {