refactor(shoraka): move financing records to master database

This commit is contained in:
2026-10-19 13:31:06 +08:00
parent a8888e66d1
commit ac57e04eac
2 changed files with 30 additions and 1 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMasterShorakaFinancingsTable extends Migration
{
public function up()
{
Schema::connection('mysql7')->create('shoraka_financings', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('kodcaw', 20);
$table->string('norujukan');
$table->string('teller');
$table->string('action', 30);
$table->string('state', 30)->default('WAITING');
$table->json('context');
$table->timestamps();
$table->unique(['kodcaw', 'norujukan']);
});
}
public function down()
{
Schema::connection('mysql7')->dropIfExists('shoraka_financings');
}
}
+2 -1
View File
@@ -39,7 +39,8 @@ COPY docker/php/certs/*.crt /usr/local/share/ca-certificates/
RUN update-ca-certificates \
&& chmod +x /usr/local/bin/app-entrypoint.sh \
&& usermod -u 1000 www-data && groupmod -g 1000 www-data
&& usermod -u 1000 www-data && groupmod -g 1000 www-data \
&& chown www-data:www-data /usr/local/etc/php/conf.d/app.ini
ENTRYPOINT ["app-entrypoint.sh"]
CMD ["php-fpm"]