auto-update

This commit is contained in:
RafficMohammed
2023-02-01 16:44:00 +05:30
parent 9dd3f53910
commit d468d309aa
16 changed files with 152 additions and 70 deletions

View File

@@ -11,7 +11,7 @@ return new class() extends Migration {
*/
public function up()
{
Schema::create('date_time_format', function (Blueprint $table) {
\Illuminate\Support\Facades\Schema::create('date_time_format', function (Blueprint $table) {
$table->increments('id');
$table->string('format');
});

View File

@@ -10,12 +10,8 @@ return new class() extends Migration {
*/
public function up()
{
$current_version1 = \Config::get('app.version');
$current_version2 = explode(' ', $current_version1);
$current_version = $current_version2[1];
$settings_system = DB::table('settings_system')->where('id', '=', '1')->first();
if ($settings_system != null) {
DB::table('settings_system')->insert(['version' => $current_version]);
DB::table('common_settings')
->insert(
['option_name' => 'enable_rtl', 'option_value' => ''],