Skip to content
Snippets Groups Projects
Commit 9ecd9280 authored by Erick Chandra's avatar Erick Chandra
Browse files

Update renaming with convention for log database tables.

parent 32b970cd
No related merge requests found
Pipeline #1851 skipped
......@@ -13,7 +13,7 @@ class GovUserLog extends Migration
public function up()
{
Schema::create('GovUserLog', function (Blueprint $table) {
$table->increments('govUserLogDBID');
$table->increments('id');
$table->integer('govDBID')->unsigned();
$table->integer('userID')->unsigned();
$table->bigInteger('nip')->unsigned()->nullable();
......
......@@ -13,7 +13,7 @@ class VendorUserLog extends Migration
public function up()
{
Schema::create('VendorUserLog', function (Blueprint $table) {
$table->increments('vendorUserLogDBID');
$table->increments('id');
$table->integer('vendorDBID')->unsigned();
$table->integer('userID')->unsigned();
$table->mediumText('old_place')->nullable();
......
......@@ -13,7 +13,7 @@ class PublicUserLog extends Migration
public function up()
{
Schema::create('PublicUserLog', function (Blueprint $table) {
$table->increments('publicUserLogDBID');
$table->increments('id');
$table->integer('publicDBID')->unsigned();
$table->integer('userID')->unsigned();
$table->string('action');
......
......@@ -13,7 +13,7 @@ class ObjectTypeLog extends Migration
public function up()
{
Schema::create('ObjectTypeLog', function (Blueprint $table) {
$table->increments('objectTypeLogDBID');
$table->increments('id');
$table->integer('objectTypeID')->unsigned();
$table->longText('name');
$table->string('action');
......
......@@ -13,7 +13,7 @@ class ObjectSellLog extends Migration
public function up()
{
Schema::create('ObjectSellLog', function (Blueprint $table) {
$table->increments('objectSellLogDBID');
$table->increments('id');
$table->integer('objectSellID')->unsigned();
$table->integer('vendorDBID')->unsigned();
$table->string('name');
......
......@@ -13,7 +13,7 @@ class ObjectSellRateAndReviewLog extends Migration
public function up()
{
Schema::create('ObjectSellRateAndReviewLog', function (Blueprint $table) {
$table->increments('osrrLogDBID');
$table->increments('id');
$table->integer('osrrID')->unsigned();
$table->integer('objectSellID')->unsigned();
$table->integer('publicDBID')->unsigned();
......
......@@ -13,7 +13,7 @@ class VendorRateAndReviewLog extends Migration
public function up()
{
Schema::create('VendorRateAndReviewLog', function (Blueprint $table) {
$table->increments('vrrLogDBID');
$table->increments('id');
$table->integer('vrrID')->unsigned();
$table->integer('publicDBID')->unsigned();
$table->integer('vendorDBID')->unsigned();
......
......@@ -13,7 +13,7 @@ class UserLog extends Migration
public function up()
{
Schema::create('UserLog', function (Blueprint $table) {
$table->increments('userLogDBID');
$table->increments('id');
$table->integer('userID')->unsigned();
$table->string('username');
$table->string('email');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment