Code Monkey home page Code Monkey logo

Comments (2)

BrandyMello avatar BrandyMello commented on September 4, 2024

This issue has gotten large. Learned to open an issue immediately to take step by step notes on what was attempted and the results so I do not lose track of what has been done.

from byob.

BrandyMello avatar BrandyMello commented on September 4, 2024

Your branch is up to date with 'origin/master'.
brandyamello~/Mod4/projects/byob[master] heroku run 'knex seed:run'
Running knex seed:run on ⬢ byob-bmello... up, run.5192 (Free)
Using environment: production
Error seeding error: delete from "dependencies_or_territories" - relation "dependencies_or_territories" does not exist
Ran 1 seed files
brandyamello~/Mod4/projects/byob[master] heroku run 'knex migrate:latest'
Running knex migrate:latest on ⬢ byob-bmello... up, run.1827 (Free)
Using environment: production
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/app/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/app/node_modules/pg/lib/connection.js:401:19)
at TLSSocket. (/app/node_modules/pg/lib/connection.js:121:22)
at TLSSocket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at TLSSocket.Readable.push (_stream_readable.js:224:10)
at TLSWrap.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:rollback
Using environment: development
migration file "20191003115715_drop-population-column-replace.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "population" varchar(255) - column "population" of relation "dependencies_or_territories" already exists
error: column "population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:rollback
Using environment: development
migration file "20191003115715_drop-population-column-replace.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "population" varchar(255) - column "population" of relation "dependencies_or_territories" already exists
error: column "population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:list
Using environment: development
Found 3 Completed Migration file/files.
20191002153940_initial.js
20191003104035_drop-population-and-landArea-columns-to-add-as-integer-columns.js
20191003115715_drop-population-column-replace.js
Found 1 Pending Migration file/files.
20191003120414_update-drop-population-column-territories-table.js

brandyamello~/Mod4/projects/byob[master] knex migrate:up
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:list
Using environment: development
Found 3 Completed Migration file/files.
20191002153940_initial.js
20191003104035_drop-population-and-landArea-columns-to-add-as-integer-columns.js
20191003115715_drop-population-column-replace.js
Found 1 Pending Migration file/files.
20191003120414_update-drop-population-column-territories-table.js

brandyamello~/Mod4/projects/byob[master] knex migrate:down
Using environment: development
migration file "20191003115715_drop-population-column-replace.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "population" varchar(255) - column "population" of relation "dependencies_or_territories" already exists
error: column "population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:list
Using environment: development
Found 3 Completed Migration file/files.
20191002153940_initial.js
20191003104035_drop-population-and-landArea-columns-to-add-as-integer-columns.js
20191003115715_drop-population-column-replace.js
Found 1 Pending Migration file/files.
20191003120414_update-drop-population-column-territories-table.js

brandyamello~/Mod4/projects/byob[master] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master] knex migrate:pending
Usage: knex [options] [command]

Options:
-V, --version output the version number
--debug Run with debugging.
--knexfile [path] Specify the knexfile path.
--knexpath [path] Specify the path to knex instance.
--cwd [path] Specify the working directory.
--client [name] Set DB client without a knexfile.
--connection [address] Set DB connection without a knexfile.
--migrations-directory [path] Set migrations directory without a knexfile.
--migrations-table-name [path] Set migrations table name without a knexfile.
--env [name] environment, default: process.env.NODE_ENV || development
-h, --help output usage information

Commands:
init [options] Create a fresh knexfile.
migrate:make [options] Create a named migration file.
migrate:latest [options] Run all migrations that have not yet been run.
migrate:up Run the next migration that has not yet been run.
migrate:rollback [options] Rollback the last batch of migrations performed.
migrate:down Undo the last migration performed.
migrate:currentVersion View the current version for the migration.
migrate:list|migrate:status List all migrations files with status.
seed:make [options] Create a named seed file.
seed:run [options] Run seed files.
Unknown command-line options, exiting
brandyamello~/Mod4/projects/byob[master] knex migrate:currentVersion
Using environment: development
Current Version: 20191003115715
brandyamello~/Mod4/projects/byob[master] knex migrate:make drop-terr-table-add corrected-table
Using environment: development
Using environment: development
Using environment: development
Created Migration: /Users/brandyamello/Mod4/projects/byob/db/migrations/20191005193611_drop-terr-table-add.js
brandyamello~/Mod4/projects/byob[master ?] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:currentVersion
Using environment: development
Current Version: 20191003115715
brandyamello~/Mod4/projects/byob[master ?] knex migrate:down
Using environment: development
migration file "20191003115715_drop-population-column-replace.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "population" varchar(255) - column "population" of relation "dependencies_or_territories" already exists
error: column "population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:up
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:up
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] rm 20191003120414_update-drop-population-column-territories-table
rm: 20191003120414_update-drop-population-column-territories-table: No such file or directory
brandyamello~/Mod4/projects/byob[master ?] rm 20191003120414_update-drop-population-column-territories-table.js
rm: 20191003120414_update-drop-population-column-territories-table.js: No such file or directory
brandyamello~/Mod4/projects/byob[master ?] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] knex migrate:currentVersion
Using environment: development
Current Version: 20191003115715
brandyamello~/Mod4/projects/byob[master ?] knex migrate:latest
Using environment: development
migration file "20191003120414_update-drop-population-column-territories-table.js" failed
migration failed with error: alter table "dependencies_or_territories" add column "territory_population" integer - column "territory_population" of relation "dependencies_or_territories" already exists
error: column "territory_population" of relation "dependencies_or_territories" already exists
at Connection.parseE (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:401:19)
at Socket. (/Users/brandyamello/Mod4/projects/byob/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:145:17)
brandyamello~/Mod4/projects/byob[master ?] heroku run 'knex seed:run'
Running knex seed:run on ⬢ byob-bmello... up, run.4455 (Free)
Using environment: production
Error seeding error: delete from "dependencies_or_territories" - relation "dependencies_or_territories" does not exist
Ran 1 seed files
brandyamello~/Mod4/projects/byob[master] heroku run "knex seed:make dependencies_or_territories"
Running knex seed:make dependencies_or_territories on ⬢ byob-bmello... up, run.3427 (Free)
Using environment: production
Created seed file: /app/db/seeds/dev/dependencies_or_territories.js
brandyamello~/Mod4/projects/byob[master] heroku run 'knex seed:run'
Running knex seed:run on ⬢ byob-bmello... up, run.9938 (Free)
Using environment: production
Error seeding error: delete from "dependencies_or_territories" - relation "dependencies_or_territories" does not exist
Ran 1 seed files
brandyamello~/Mod4/projects/byob[master]

from byob.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.