InstallSchema.php 781 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestSetupDeclarationModule7\Setup;
  7. use Magento\Framework\Setup\InstallSchemaInterface;
  8. use Magento\Framework\Setup\ModuleContextInterface;
  9. use Magento\Framework\Setup\SchemaSetupInterface;
  10. /**
  11. * InstallSchema mock class
  12. */
  13. class InstallSchema implements InstallSchemaInterface
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
  19. {
  20. $installer = $setup;
  21. $installer->startSetup();
  22. $installer
  23. ->getConnection()
  24. ->modifyColumn('test_table', 'float', ['type' => 'float', 'default' => 25]);
  25. $installer->endSetup();
  26. }
  27. }