Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

DB migration

ayntk-aiba136d43fa7a
diff --git a/database/migrations/2024_08_12_155023_add_timezone_to_server_settings_table.php b/database/migrations/2024_08_12_155023_add_timezone_to_server_settings_table.php
new file mode 100644
index 0000000000..971195d6d9
--- /dev/null
+++ b/database/migrations/2024_08_12_155023_add_timezone_to_server_settings_table.php
@@ -0,0 +1,22 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddTimezoneToServerSettingsTable extends Migration
+{
+ public function up()
+ {
+ Schema::table('server_settings', function (Blueprint $table) {
+ $table->string('server_timezone')->default('UTC');
+ });
+ }
+
+ public function down()
+ {
+ Schema::table('server_settings', function (Blueprint $table) {
+ $table->dropColumn('server_timezone');
+ });
+ }
+}
\ No newline at end of file