From d249ba230c7891564276f78fb00f1fe29811581d Mon Sep 17 00:00:00 2001 From: WildEgo Date: Sat, 4 Oct 2025 18:17:18 +0100 Subject: [PATCH] add: Cheque columns. --- ..._02_171818_add_cheque_column_to_tables.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2025_10_02_171818_add_cheque_column_to_tables.php diff --git a/database/migrations/2025_10_02_171818_add_cheque_column_to_tables.php b/database/migrations/2025_10_02_171818_add_cheque_column_to_tables.php new file mode 100644 index 0000000..29853ad --- /dev/null +++ b/database/migrations/2025_10_02_171818_add_cheque_column_to_tables.php @@ -0,0 +1,36 @@ +integer('cheque')->default(0)->after('gold'); + }); + + Schema::table('player_deleted', function (Blueprint $table) { + $table->integer('cheque')->default(0)->after('gold'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('player', function (Blueprint $table) { + $table->dropColumn('cheque'); + }); + + Schema::table('player_deleted', function (Blueprint $table) { + $table->dropColumn('cheque'); + }); + } +};