Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop and rename table/column/indexes/constraints #3

Open
9 tasks done
marcotas opened this issue Jun 17, 2022 · 0 comments
Open
9 tasks done

Drop and rename table/column/indexes/constraints #3

marcotas opened this issue Jun 17, 2022 · 0 comments
Assignees
Milestone

Comments

@marcotas
Copy link
Contributor

marcotas commented Jun 17, 2022

  • drop table -> drop('table') and dropIfExist('table')
  • drop column -> table.dropColumn('column') and table.dropColumns(['column'])
  • drop compounds -> table.dropSoftDeletes(), table.dropTimestamps()
  • drop index -> table.dropIndex(column: 'name') and table.dropIndex(columns: ['name']) and table.dropIndex(name: 'test_name_index')
  • drop unique -> table.dropUnique(column, columns or name)
  • drop primary -> table.dropPrimary(name?)
  • rename table -> Schema.rename('from', 'to')
  • rename column -> table.renameColumn('from', 'to')
  • rename index -> table.renameIndex('from', 'to')
@marcotas marcotas self-assigned this Jun 17, 2022
@marcotas marcotas added this to the v1.0.0 milestone Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📖 Documenting
Development

No branches or pull requests

1 participant