# I do not want to delete all my data

**URL:** <https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868>\
**Category:** Server Side Swift with Vapor\
**Created:** [April 26, 2020, 2:31pm UTC](https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868 "2020-04-26T14:31:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erdmzgr](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/erdmzgr/32/81494_2.png) [@erdmzgr](https://forums.kodeco.com/u/erdmzgr)\
**Post date:** [April 26, 2020, 2:31pm UTC](https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868/1 "2020-04-26T14:31:15Z")

</div>

Hi i have a question,

When we add a new variable into the models, we create a new table for the model and  
the book says you have to delete all data with run revert -all -yes command, but i do not want to delete all data, i want to add a new table instead of deleting all my data,

is there any solution for this?

---

<div class="post-metadata">

**Author:** ![thedan84](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/thedan84/32/109266_2.png) [@thedan84](https://forums.kodeco.com/u/thedan84)\
**Post date:** [April 26, 2020, 3:57pm UTC](https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868/2 "2020-04-26T15:57:27Z")

</div>

@erdmzgr The only other solution you have is to run a migration. That will be covered later in the book though, in the meantime it’s easiest to just follow along and delete all data until you learn how to write migrations.

---

<div class="post-metadata">

**Author:** ![erdmzgr](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/erdmzgr/32/81494_2.png) [@erdmzgr](https://forums.kodeco.com/u/erdmzgr)\
**Post date:** [April 26, 2020, 4:30pm UTC](https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868/3 "2020-04-26T16:30:37Z")

</div>

@thedan84 thanks a lot, i will search how to write migration.

---

<div class="post-metadata">

**Author:** ![0xtim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/0xtim/32/111111_2.png) [@0xtim](https://forums.kodeco.com/u/0xtim)\
**Post date:** [April 27, 2020, 12:02pm UTC](https://forums.kodeco.com/t/i-do-not-want-to-delete-all-my-data/106868/4 "2020-04-27T12:02:24Z")

</div>

It’s Chapter 26 in the book
