Skip to content

Commit

Permalink
Merge pull request #79 from fleetbase/hotfix/broken-migrations
Browse files Browse the repository at this point in the history
fix broken migrations
  • Loading branch information
roncodes authored Feb 22, 2024
2 parents bdcadd7 + c9f8f07 commit a609f0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fleetbase/fleetops-api",
"version": "0.4.13",
"version": "0.4.14",
"description": "Fleet & Transport Management Extension for Fleetbase",
"keywords": [
"fleetbase-extension",
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Fleet-Ops",
"version": "0.4.13",
"version": "0.4.14",
"description": "Fleet & Transport Management Extension for Fleetbase",
"repository": "https://github.com/fleetbase/fleetops",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/fleetops-engine",
"version": "0.4.13",
"version": "0.4.14",
"description": "Fleet & Transport Management Extension for Fleetbase",
"fleetbase": {
"route": "fleet-ops"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
public function up()
{
Schema::table('drivers', function (Blueprint $table) {
$table->json('meta')->nullable()->after('slug');
if (!Schema::hasColumn('drivers', 'meta')) {
$table->json('meta')->nullable()->after('slug');
}
});
}

Expand All @@ -26,7 +28,9 @@ public function up()
public function down()
{
Schema::table('drivers', function (Blueprint $table) {
$table->dropColumn('meta');
if (Schema::hasColumn('drivers', 'meta')) {
$table->dropColumn('meta');
}
});
}
};

0 comments on commit a609f0d

Please sign in to comment.