From 925faeb6f4ed2ecde4ac2cc329184ea09da890fe Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 1 Jul 2025 15:28:07 -0400 Subject: [PATCH] Migracion para guardar account-key de toku --- .../20250701192525_create_toku_accounts.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/resources/database/migrations/20250701192525_create_toku_accounts.php diff --git a/app/resources/database/migrations/20250701192525_create_toku_accounts.php b/app/resources/database/migrations/20250701192525_create_toku_accounts.php new file mode 100644 index 0000000..411efe2 --- /dev/null +++ b/app/resources/database/migrations/20250701192525_create_toku_accounts.php @@ -0,0 +1,32 @@ +table('toku_accounts') + ->addColumn('toku_id', 'integer') + ->addColumn('sociedad_rut', 'integer', ['limit' => 8]) + ->addColumn('account_key', 'string', ['length' => 255]) + ->addIndex(['toku_id'], ['unique' => true]) + ->addIndex(['account_id'], ['unique' => true]) + ->addForeignKey('sociedad_rut', 'sociedades', 'rut', ['delete' => 'CASCADE', 'update' => 'CASCADE']) + ->addTimestamps() + ->create(); + } +}