diff --git a/ci.sh b/ci.sh index ef3e2335..43abcac6 100755 --- a/ci.sh +++ b/ci.sh @@ -20,7 +20,7 @@ git clone --branch dev https://github.com/dbarzin/mercator # Composer tput setaf 2; echo "Composer update"; tput setaf 7 cd /tmp/mercator -composer update +composer install # Drop old test database # If it fails execute this : @@ -52,8 +52,8 @@ tput setaf 2; echo "Generate application key"; tput setaf 7 php artisan key:generate # Publush vendor packages -tput setaf 2; echo "Publish"; tput setaf 7 -php artisan vendor:publish --all +#tput setaf 2; echo "Publish"; tput setaf 7 +#php artisan vendor:publish --all # Migrate and seed the database tput setaf 2; echo "Migrate and seed the application"; tput setaf 7 @@ -64,8 +64,8 @@ tput setaf 2; echo "Insert test data"; tput setaf 7 cat ./mercator_data.sql | mysql mercator_test # Check code quality -tput setaf 2; echo "Check code quality"; tput setaf 7 -php artisan insights -s +#tput setaf 2; echo "Check code quality"; tput setaf 7 +#php artisan insights -s # Configure dusk cp .env .env.dusk.local diff --git a/database/migrations/2024_11_26_130914_add_authenticity.php b/database/migrations/2024_11_26_130914_add_authenticity.php new file mode 100644 index 00000000..6a7b2e5d --- /dev/null +++ b/database/migrations/2024_11_26_130914_add_authenticity.php @@ -0,0 +1,76 @@ +integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('relations', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('macro_processuses', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('processes', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('m_applications', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('databases', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + + Schema::table('information', function (Blueprint $table) { + $table->integer('security_need_auth')->after('security_need_t')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('networks', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('relations', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('macro_processuses', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('processes', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('m_applications', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('databases', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + + Schema::table('information', function (Blueprint $table) { + $table->dropColumn('security_need_auth'); + }); + } +};