CPgsqlCommandBuilder.php 794 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * CPgsqlCommandBuilder class file.
  4. *
  5. * @author Timur Ruziev <resurtm@gmail.com>
  6. * @link http://www.yiiframework.com/
  7. * @copyright 2008-2013 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. /**
  11. * CPgsqlCommandBuilder provides basic methods to create query commands for tables.
  12. *
  13. * @author Timur Ruziev <resurtm@gmail.com>
  14. * @package system.db.schema.pgsql
  15. * @since 1.1.14
  16. */
  17. class CPgsqlCommandBuilder extends CDbCommandBuilder
  18. {
  19. /**
  20. * Returns default value of the integer/serial primary key. Default value means that the next
  21. * autoincrement/sequence value would be used.
  22. * @return string default value of the integer/serial primary key.
  23. * @since 1.1.14
  24. */
  25. protected function getIntegerPrimaryKeyDefaultValue()
  26. {
  27. return 'DEFAULT';
  28. }
  29. }