From a29bdd09ae46b4aff673b774cc8b6c1b4316c54e Mon Sep 17 00:00:00 2001 From: TL Date: Thu, 30 Jun 2022 20:01:15 +0800 Subject: [PATCH] migrations/2022_06_30_085304_currency.php --- .../migrations/2022_06_30_085304_currency.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2022_06_30_085304_currency.php diff --git a/database/migrations/2022_06_30_085304_currency.php b/database/migrations/2022_06_30_085304_currency.php new file mode 100644 index 00000000..b2c35aea --- /dev/null +++ b/database/migrations/2022_06_30_085304_currency.php @@ -0,0 +1,38 @@ +id(); + $table->string('name', 64); + $table->string('code', 16); + $table->string('symbol_left', 16); + $table->string('symbol_right', 16); + $table->char('decimal_place', 1); + $table->double('value', 15, 8); + $table->tinyInteger('status'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('currencies'); + } +}